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

Unified Diff: base/profiler/stack_sampling_profiler.h

Issue 1325653003: Type change in StackSamplingProfiler from void* to uintptr_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@UMA2_refactor
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/profiler/stack_sampling_profiler.cc » ('j') | content/browser/profiler_message_filter.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/stack_sampling_profiler.h
diff --git a/base/profiler/stack_sampling_profiler.h b/base/profiler/stack_sampling_profiler.h
index 5a6c3d0514d00a337d462f06e79c0e89ced5a249..681edef96968135c39eed41eaec05794ddda7b4f 100644
--- a/base/profiler/stack_sampling_profiler.h
+++ b/base/profiler/stack_sampling_profiler.h
@@ -69,7 +69,7 @@ class BASE_EXPORT StackSamplingProfiler {
~Module();
// Points to the base address of the module.
- const void* base_address;
+ uintptr_t base_address;
Mike Wittman 2015/08/31 20:57:57 I'd prefer to keep the const void* type for this a
erikchen 2015/08/31 21:15:17 The type of this member should not be dependent on
Mike Wittman 2015/08/31 21:42:00 Debuggability of the code is always a relevant con
sydli 2015/09/01 00:29:59 Okay; I split this into a separate CL: https://cod
Mike Wittman 2015/09/01 00:41:57 The const void* => uintptr_t change should be pret
// An opaque binary string that uniquely identifies a particular program
// version with high probability. This is parsed from headers of the loaded
@@ -89,11 +89,12 @@ class BASE_EXPORT StackSamplingProfiler {
// Identifies an unknown module.
static const size_t kUnknownModuleIndex = static_cast<size_t>(-1);
+ Frame();
Frame(const void* instruction_pointer, size_t module_index);
Mike Wittman 2015/08/31 21:42:00 Similarly, the |instruction_pointer| parameter sho
sydli 2015/09/01 00:29:59 Done.
~Frame();
// The sampled instruction pointer within the function.
- const void* instruction_pointer;
+ uintptr_t instruction_pointer;
// Index of the module in CallStackProfile::modules. We don't represent
// module state directly here to save space.
« no previous file with comments | « no previous file | base/profiler/stack_sampling_profiler.cc » ('j') | content/browser/profiler_message_filter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698