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

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

Issue 6877053: Base: More adjustments to BASE_API and project dependencies to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/bzip2_error_handler.cc ('k') | base/files/file_path_watcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_DEBUG_PROFILER_H 5 #ifndef BASE_DEBUG_PROFILER_H
6 #define BASE_DEBUG_PROFILER_H 6 #define BASE_DEBUG_PROFILER_H
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/base_api.h"
12
11 // The Profiler functions allow usage of the underlying sampling based 13 // The Profiler functions allow usage of the underlying sampling based
12 // profiler. If the application has not been built with the necessary 14 // profiler. If the application has not been built with the necessary
13 // flags (-DENABLE_PROFILING and not -DNO_TCMALLOC) then these functions 15 // flags (-DENABLE_PROFILING and not -DNO_TCMALLOC) then these functions
14 // are noops. 16 // are noops.
15 namespace base { 17 namespace base {
16 namespace debug { 18 namespace debug {
17 19
18 // Start profiling with the supplied name. 20 // Start profiling with the supplied name.
19 // {pid} will be replaced by the process' pid and {count} will be replaced 21 // {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). 22 // by the count of the profile run (starts at 1 with each process).
21 void StartProfiling(const std::string& name); 23 BASE_API void StartProfiling(const std::string& name);
22 24
23 // Stop profiling and write out data. 25 // Stop profiling and write out data.
24 void StopProfiling(); 26 BASE_API void StopProfiling();
25 27
26 // Force data to be written to file. 28 // Force data to be written to file.
27 void FlushProfiling(); 29 BASE_API void FlushProfiling();
28 30
29 // Returns true if process is being profiled. 31 // Returns true if process is being profiled.
30 bool BeingProfiled(); 32 BASE_API bool BeingProfiled();
31 33
32 } // namespace debug 34 } // namespace debug
33 } // namespace base 35 } // namespace base
34 36
35 #endif // BASE_DEBUG_DEBUGGER_H 37 #endif // BASE_DEBUG_DEBUGGER_H
OLDNEW
« no previous file with comments | « base/bzip2_error_handler.cc ('k') | base/files/file_path_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698