summaryrefslogtreecommitdiff
path: root/src/profiler.cc
diff options
context:
space:
mode:
authorcsilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2008-09-19 20:06:40 +0000
committercsilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2008-09-19 20:06:40 +0000
commit106aef86ce5697cf44bdbec90ab6833b9254d273 (patch)
tree5f105b677eb6b76afcbdc752778ed5ae14e63462 /src/profiler.cc
parent100e657c5092bc274424286a728db5116a4bbc54 (diff)
downloadgperftools-106aef86ce5697cf44bdbec90ab6833b9254d273.tar.gz
Thu Sep 18 16:00:27 2008 Google Inc. <opensource@google.com>
* google-perftools: version 0.99 release * Add IsHeapProfileRunning (csilvers) * Add C shims for some of the C++ header files (csilvers) * Fix heap profile file clean-up logic (maxim) * Rename linuxthreads.c to .cc for better compiler support (csilvers) * Add source info to disassembly in pprof (sanjay) * Use open instead of fopen to avoid memory alloc (csilvers) * Disable malloc extensions when running under valgrind (kcc) * BUG FIX: Fix out-of-bound error by reordering a check (larryz) * Add Options struct to ProfileData (cgd) * Correct PC-handling of --base in pprof (csilvers) * Handle 1 function occurring twice in an image (sanjay) * Improve stack-data cleaning (maxim) * Use 'struct Foo' to make header C compatible (csilvers) * Add 'total' line to pprof --text (csilvers) * Pre-allocate buffer for heap-profiler to avoid OOM errors (csilvers) * Allow a few more env-settings to control tcmalloc (csilvers) * Document some of the issues involving thread-local storage (csilvers) * BUG FIX: Define strtoll and friends for windows (csilvers) git-svn-id: http://gperftools.googlecode.com/svn/trunk@54 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
Diffstat (limited to 'src/profiler.cc')
-rw-r--r--src/profiler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/profiler.cc b/src/profiler.cc
index 3149a89..5f7cdbe 100644
--- a/src/profiler.cc
+++ b/src/profiler.cc
@@ -229,7 +229,9 @@ bool CpuProfiler::Start(const char* fname,
// recorded against the new profile, but there's no harm in that.
SpinLockHolder sl(&signal_lock_);
- if (!collector_.Start(fname, frequency_)) {
+ ProfileData::Options collector_options;
+ collector_options.set_frequency(frequency_);
+ if (!collector_.Start(fname, collector_options)) {
return false;
}