Skip to content

Commit

Permalink
Bug 1576551 - AUTO_PROFILER_STATS(locked_profiler_stream_json_for_thi…
Browse files Browse the repository at this point in the history
…s_process) - r=gregtatum

Add some stats (off by default) around streaming JSON, as the following patches
may affect it.

Differential Revision: https://phabricator.services.mozilla.com/D44952

--HG--
extra : moz-landing-system : lando
  • Loading branch information
squelart committed Sep 17, 2019
1 parent d20384e commit e8ea7f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mozglue/baseprofiler/core/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,8 @@ static void locked_profiler_stream_json_for_this_process(

MOZ_RELEASE_ASSERT(CorePS::Exists() && ActivePS::Exists(aLock));

AUTO_PROFILER_STATS(base_locked_profiler_stream_json_for_this_process);

double collectionStart = profiler_time();

ProfileBuffer& buffer = ActivePS::Buffer(aLock);
Expand Down
2 changes: 2 additions & 0 deletions tools/profiler/core/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,8 @@ static void locked_profiler_stream_json_for_this_process(

MOZ_RELEASE_ASSERT(CorePS::Exists() && ActivePS::Exists(aLock));

AUTO_PROFILER_STATS(locked_profiler_stream_json_for_this_process);

double collectionStart = profiler_time();

ProfileBuffer& buffer = ActivePS::Buffer(aLock);
Expand Down

0 comments on commit e8ea7f3

Please sign in to comment.