Skip to content

Commit

Permalink
Fixed formatting of C++ code
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanicijamd committed Sep 6, 2024
1 parent 42ffe97 commit a82f8ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions source/lib/core/perfetto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,12 @@ perfetto_counter_track<Tp>::emplace(size_t _idx, const std::string& _v,
auto _index = _track_data.size();
auto& _name = _name_data.emplace_back(std::make_unique<std::string>(_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)
Expand Down
4 changes: 2 additions & 2 deletions source/lib/omnitrace/library/tracing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ mark_perfetto_track(CategoryT, const char* name, ::perfetto::Track _track, uint6
// skip if category is disabled
if(category_mark_disabled<CategoryT>()) return;

TRACE_EVENT_INSTANT(trait::name<CategoryT>::value, ::perfetto::DynamicString{name}, _track, _ts,
std::forward<Args>(args)...);
TRACE_EVENT_INSTANT(trait::name<CategoryT>::value, ::perfetto::DynamicString{name},
_track, _ts, std::forward<Args>(args)...);
}
} // namespace tracing
} // namespace omnitrace

0 comments on commit a82f8ac

Please sign in to comment.