Index: third_party/tcmalloc/vendor/doc/cpuprofile.html |
diff --git a/third_party/tcmalloc/vendor/doc/cpuprofile.html b/third_party/tcmalloc/vendor/doc/cpuprofile.html |
index f029e787ac07d87585b82e6b1a5989d1f39f84ad..769ec68f3d3b34c45b399fb80f933917095437dd 100644 |
--- a/third_party/tcmalloc/vendor/doc/cpuprofile.html |
+++ b/third_party/tcmalloc/vendor/doc/cpuprofile.html |
@@ -3,7 +3,7 @@ |
<HEAD> |
<link rel="stylesheet" href="designstyle.css"> |
- <title>Google CPU Profiler</title> |
+ <title>Gperftools CPU Profiler</title> |
</HEAD> |
<BODY> |
@@ -50,13 +50,14 @@ for a given run of an executable:</p> |
<ol> |
<li> <p>Define the environment variable CPUPROFILE to the filename |
- to dump the profile to. For instance, to profile |
- <code>/usr/local/bin/my_binary_compiled_with_libprofiler_so</code>:</p> |
- <pre>% env CPUPROFILE=/tmp/mybin.prof /usr/local/bin/my_binary_compiled_with_libprofiler_so</pre> |
+ to dump the profile to. For instance, if you had a version of |
+ <code>/bin/ls</code> that had been linked against libprofiler, |
+ you could run:</p> |
+ <pre>% env CPUPROFILE=ls.prof /bin/ls</pre> |
<li> <p>In your code, bracket the code you want profiled in calls to |
<code>ProfilerStart()</code> and <code>ProfilerStop()</code>. |
- (These functions are declared in <code><google/profiler.h></code>.) |
+ (These functions are declared in <code><gperftools/profiler.h></code>.) |
<code>ProfilerStart()</code> will take |
the profile-filename as an argument.</p> |
</ol> |
@@ -71,7 +72,7 @@ CPUPROFILE with the child's process id).</p> |
<p>For security reasons, CPU profiling will not write to a file -- and |
is thus not usable -- for setuid programs.</p> |
-<p>See the include-file <code>google/profiler.h</code> for |
+<p>See the include-file <code>gperftools/profiler.h</code> for |
advanced-use functions, including <code>ProfilerFlush()</code> and |
<code>ProfilerStartWithOptions()</code>.</p> |