diff --git a/source/lib/core/perfetto.hpp b/source/lib/core/perfetto.hpp index fd706026..29aff377 100644 --- a/source/lib/core/perfetto.hpp +++ b/source/lib/core/perfetto.hpp @@ -109,11 +109,12 @@ perfetto_counter_track::emplace(size_t _idx, const std::string& _v, auto _index = _track_data.size(); auto& _name = _name_data.emplace_back(std::make_unique(_v)); const char* _unit_name = (_units && strlen(_units) > 0) ? _units : nullptr; - _track_data.emplace_back(::perfetto::CounterTrack{ ::perfetto::DynamicString{_name->c_str()} } - .set_unit_name(_unit_name) - .set_category(_category) - .set_unit_multiplier(_mult) - .set_is_incremental(_incr)); + _track_data.emplace_back( + ::perfetto::CounterTrack{ ::perfetto::DynamicString{_name->c_str()} } + .set_unit_name(_unit_name) + .set_category(_category) + .set_unit_multiplier(_mult) + .set_is_incremental(_incr)); if(config::get_is_continuous_integration()) { for(auto& itr : _missing) diff --git a/source/lib/omnitrace/library/tracing.hpp b/source/lib/omnitrace/library/tracing.hpp index 566f683e..d57b41b6 100644 --- a/source/lib/omnitrace/library/tracing.hpp +++ b/source/lib/omnitrace/library/tracing.hpp @@ -648,8 +648,8 @@ mark_perfetto_track(CategoryT, const char* name, ::perfetto::Track _track, uint6 // skip if category is disabled if(category_mark_disabled()) return; - TRACE_EVENT_INSTANT(trait::name::value, ::perfetto::DynamicString{name}, _track, _ts, - std::forward(args)...); + TRACE_EVENT_INSTANT(trait::name::value, ::perfetto::DynamicString{name}, + _track, _ts, std::forward(args)...); } } // namespace tracing } // namespace omnitrace