Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Issue 2362493002: Stack sampling profiler: set process and thread information (Closed)

Created:
4 years, 3 months ago by Mike Wittman
Modified:
4 years, 3 months ago
Reviewers:
Tom Sepez, Ilya Sherman, sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, asvitkine+watch_chromium.org, piman+watch_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stack sampling profiler: set process and thread information Adds process and thread state to CallStackProfileParams, and sets it at the the profiler call sites. Propagates this information to the associated UMA protobuf. This state is required to distinguish different process/thread profiling scenarios in the resulting data. BUG=517958 Committed: https://crrev.com/4472aa947dabb7edd857fee3a2182b8181167a9f Cr-Commit-Position: refs/heads/master@{#420439}

Patch Set 1 #

Patch Set 2 : fix JankTimeBomb unit test #

Total comments: 8

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -82 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/thread_watcher.h View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/metrics/thread_watcher.cc View 3 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/metrics/thread_watcher_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/gpu/chrome_content_gpu_client.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/metrics/call_stack_profile_collector.h View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M components/metrics/call_stack_profile_collector.cc View 1 chunk +10 lines, -3 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider.cc View 1 2 3 chunks +62 lines, -4 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider_unittest.cc View 11 chunks +34 lines, -10 lines 0 comments Download
M components/metrics/call_stack_profile_params.h View 2 chunks +43 lines, -2 lines 0 comments Download
M components/metrics/call_stack_profile_params.cc View 1 chunk +8 lines, -5 lines 0 comments Download
M components/metrics/child_call_stack_profile_collector_unittest.cc View 4 chunks +22 lines, -4 lines 0 comments Download
M components/metrics/public/cpp/call_stack_profile.typemap View 1 chunk +2 lines, -0 lines 0 comments Download
M components/metrics/public/cpp/call_stack_profile_struct_traits.h View 3 chunks +172 lines, -20 lines 0 comments Download
M components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc View 3 chunks +119 lines, -16 lines 0 comments Download
M components/metrics/public/interfaces/call_stack_profile_collector.mojom View 2 chunks +31 lines, -0 lines 0 comments Download
M components/metrics/public/interfaces/call_stack_profile_collector_test.mojom View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
Mike Wittman
PTAL isherman: components/metrics, chrome/browser/metrics tsepez: struct_traits, mojom sky: chrome/browser/chrome_browser_main.cc, chrome/browser/chrome_browser_main.cc
4 years, 3 months ago (2016-09-21 20:31:27 UTC) #4
Tom Sepez
mojom / traits LGTM.
4 years, 3 months ago (2016-09-21 20:45:03 UTC) #7
Mike Wittman
Er, this should be: sky: chrome/browser/chrome_browser_main.cc, *chrome/gpu/chrome_content_gpu_client.cc*
4 years, 3 months ago (2016-09-21 22:04:55 UTC) #12
sky
Said files LGTM. I had started looking at some of other files before realizing you ...
4 years, 3 months ago (2016-09-21 22:06:16 UTC) #13
Mike Wittman
https://codereview.chromium.org/2362493002/diff/20001/chrome/browser/metrics/thread_watcher.h File chrome/browser/metrics/thread_watcher.h (right): https://codereview.chromium.org/2362493002/diff/20001/chrome/browser/metrics/thread_watcher.h#newcode666 chrome/browser/metrics/thread_watcher.h:666: metrics::CallStackProfileParams::Thread thread_; On 2016/09/21 22:06:16, sky wrote: > const ...
4 years, 3 months ago (2016-09-21 22:26:21 UTC) #16
Ilya Sherman
lgtm
4 years, 3 months ago (2016-09-22 01:01:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362493002/40001
4 years, 3 months ago (2016-09-22 16:33:24 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/297825)
4 years, 3 months ago (2016-09-22 17:08:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362493002/40001
4 years, 3 months ago (2016-09-22 17:10:16 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/297854)
4 years, 3 months ago (2016-09-22 17:59:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362493002/40001
4 years, 3 months ago (2016-09-22 19:19:26 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-22 20:14:11 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 20:18:17 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4472aa947dabb7edd857fee3a2182b8181167a9f
Cr-Commit-Position: refs/heads/master@{#420439}

Powered by Google App Engine
This is Rietveld 408576698