From 88a7e52fece7e4eb3e891805c971c027a35fe660 Mon Sep 17 00:00:00 2001 From: "jar@chromium.org" Date: Tue, 7 Feb 2012 18:29:42 +0000 Subject: Propogate status setting for profiler to track parents 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/9181002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120789 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/profiler_controller_impl.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'content/browser/profiler_controller_impl.h') diff --git a/content/browser/profiler_controller_impl.h b/content/browser/profiler_controller_impl.h index eca522a..ff361ea 100644 --- a/content/browser/profiler_controller_impl.h +++ b/content/browser/profiler_controller_impl.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -6,6 +6,7 @@ #define CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_ #include "base/memory/singleton.h" +#include "base/tracked_objects.h" #include "content/common/content_export.h" #include "content/public/browser/profiler_controller.h" @@ -34,7 +35,8 @@ class CONTENT_EXPORT ProfilerControllerImpl : public ProfilerController { virtual void Register(ProfilerSubscriber* subscriber) OVERRIDE; virtual void Unregister(ProfilerSubscriber* subscriber) OVERRIDE; virtual void GetProfilerData(int sequence_number) OVERRIDE; - virtual void SetProfilerStatus(bool enable) OVERRIDE; + virtual void SetProfilerStatus( + tracked_objects::ThreadData::Status status) OVERRIDE; private: friend struct DefaultSingletonTraits; @@ -43,7 +45,8 @@ class CONTENT_EXPORT ProfilerControllerImpl : public ProfilerController { void GetProfilerDataFromChildProcesses(int sequence_number); // Contact child processes and set profiler status to |enable|. - void SetProfilerStatusInChildProcesses(bool enable); + void SetProfilerStatusInChildProcesses( + tracked_objects::ThreadData::Status status); ProfilerSubscriber* subscriber_; -- cgit v1.1