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

Side by Side Diff: base/debug/profiler.h

Issue 6250070: Added command line switches and UI (controlled via a build option) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review concerns Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base.gypi ('k') | base/debug/profiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_DEBUG_PROFILER_H
6 #define BASE_DEBUG_PROFILER_H
7 #pragma once
8
9 #include <string>
10
11 // The Profiler functions allow usage of the underlying sampling based
12 // profiler. If the application has not been built with the necessary
13 // flags (-DENABLE_PROFILING and not -DNO_TCMALLOC) then these functions
14 // are noops.
15 namespace base {
16 namespace debug {
17
18 // Start profiling with the supplied name.
19 // {pid} will be replaced by the process' pid and {count} will be replaced
20 // by the count of the profile run (starts at 1 with each process).
21 void StartProfiling(const std::string& name);
22
23 // Stop profiling and write out data.
24 void StopProfiling();
25
26 // Force data to be written to file.
27 void FlushProfiling();
28
29 // Returns true if process is being profiled.
30 bool BeingProfiled();
31
32 } // namespace debug
33 } // namespace base
34
35 #endif // BASE_DEBUG_DEBUGGER_H
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/debug/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698