summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/chromium/src/sampler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tcmalloc/chromium/src/sampler.cc')
-rw-r--r--third_party/tcmalloc/chromium/src/sampler.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/tcmalloc/chromium/src/sampler.cc b/third_party/tcmalloc/chromium/src/sampler.cc
index bdf8779..0ea6df1 100644
--- a/third_party/tcmalloc/chromium/src/sampler.cc
+++ b/third_party/tcmalloc/chromium/src/sampler.cc
@@ -35,14 +35,15 @@
#include "sampler.h"
#include <algorithm> // For min()
-#include <cmath>
+#include <math.h>
+#include "base/commandlineflags.h"
using std::min;
// The approximate gap in bytes between sampling actions.
// I.e., we take one sample approximately once every
// tcmalloc_sample_parameter bytes of allocation
-// i.e. about once every 512KB.
+// i.e. about once every 512KB if value is 1<<19.
#ifdef NO_TCMALLOC_SAMPLES
DEFINE_int64(tcmalloc_sample_parameter, 0,
"Unused: code is compiled with NO_TCMALLOC_SAMPLES");
@@ -50,8 +51,7 @@ DEFINE_int64(tcmalloc_sample_parameter, 0,
DEFINE_int64(tcmalloc_sample_parameter,
EnvToInt64("TCMALLOC_SAMPLE_PARAMETER", 0),
"The approximate gap in bytes between sampling actions. "
- "This must be between 1 and 1<<58.");
-// Note: there are other places in this file where the number 19 occurs.
+ "This must be between 1 and 2^58.");
#endif
namespace tcmalloc {