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

Issue 2131293002: Make all tests profilable (Closed)

Created:
4 years, 5 months ago by Fady Samuel
Modified:
4 years, 5 months ago
Reviewers:
danakj, sadrul, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make all tests profilable We did not run profiling on unit and perf tests even when the enable_profiling build flag was present. In order to dump profiling data, base::debug::StartProfiling(..) must be called somewhere. I've moved that code to base::TestSuite. Note that this code is a no-op unless the profiling build flag is present. BUG=624459 TBR=sky@chromium.org Committed: https://crrev.com/2573dfb1ec3c99ab6d7c1863b8e6a7a24f4fe626 Cr-Commit-Position: refs/heads/master@{#404522}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M base/base_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/base_switches.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M base/test/test_suite.cc View 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/common/profiling.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Fady Samuel
+sadrul@ FYI +danakj@ for review It seems like we should be able to easily profile ...
4 years, 5 months ago (2016-07-08 16:07:18 UTC) #2
danakj
LGTM
4 years, 5 months ago (2016-07-08 20:46:32 UTC) #3
Fady Samuel
+sky@ for added include in profiling.cc (I'm TBR'ing you), the switches change looks like a ...
4 years, 5 months ago (2016-07-08 20:54:50 UTC) #5
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/2131293002/1
4 years, 5 months ago (2016-07-08 20:56:54 UTC) #8
sky
LGTM
4 years, 5 months ago (2016-07-08 20:57:53 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-08 23:02:57 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 23:03:10 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 23:04:09 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2573dfb1ec3c99ab6d7c1863b8e6a7a24f4fe626
Cr-Commit-Position: refs/heads/master@{#404522}

Powered by Google App Engine
This is Rietveld 408576698