diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 19:43:42 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 19:43:42 +0000 |
commit | 702a12dae9a2ed34362e381df7419c314e4124bf (patch) | |
tree | c9980ba18234d26584d03629600e06996744e7ce /base/tracked_objects.h | |
parent | c07eef4e772952ab4ad0213b581c97e92f00831e (diff) | |
download | chromium_src-702a12dae9a2ed34362e381df7419c314e4124bf.zip chromium_src-702a12dae9a2ed34362e381df7419c314e4124bf.tar.gz chromium_src-702a12dae9a2ed34362e381df7419c314e4124bf.tar.bz2 |
Propogate status setting for profiler to track parents
[Reland: https://src.chromium.org/viewvc/chrome?view=rev&revision=120789
with minor change to avoid race on status change.]
This allows child processes to track ancestry, and report
it to the browser process.
Parent tracking is only turned on based on an
environment variable.
r=rtenneti
Review URL: https://chromiumcodereview.appspot.com/9363007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121491 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tracked_objects.h')
-rw-r--r-- | base/tracked_objects.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/base/tracked_objects.h b/base/tracked_objects.h index 9b7f111..c0674cc 100644 --- a/base/tracked_objects.h +++ b/base/tracked_objects.h @@ -442,15 +442,17 @@ class BASE_EXPORT ThreadData { // PROFILING_ACTIVE (i.e., it can't be set to a higher level than what is // compiled into the binary, and parent-child tracking at the // PROFILING_CHILDREN_ACTIVE level might not be compiled in). - static bool InitializeAndSetTrackingStatus(bool status); + static bool InitializeAndSetTrackingStatus(Status status); + + static Status status(); // Indicate if any sort of profiling is being done (i.e., we are more than // DEACTIVATED). - static bool tracking_status(); + static bool TrackingStatus(); // For testing only, indicate if the status of parent-child tracking is turned - // on. This is currently a compiled option, atop tracking_status(). - static bool tracking_parent_child_status(); + // on. This is currently a compiled option, atop TrackingStatus(). + static bool TrackingParentChildStatus(); // Special versions of Now() for getting times at start and end of a tracked // run. They are super fast when tracking is disabled, and have some internal |