summaryrefslogtreecommitdiff
path: root/absl/base/internal/malloc_hook_c.h
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2018-01-29 16:28:44 -0800
committerGravatar jueminyang <jueminyang@google.com>2018-01-30 10:33:08 -0500
commit26d8858eccf280ac5763db15e8b3eeed75489cf1 (patch)
tree6a54a0e31986c8bc2d9076a784f8068dabce2506 /absl/base/internal/malloc_hook_c.h
parent46ed9d96d1412223d22430ca2aed4411894c2d63 (diff)
Changes imported from Abseil "staging" branch:
- 53419b5e123c4c9c47ecfe52ba747a271b03ae9c Add the sampling weight to MallocHook_SampledAlloc, so th... by Abseil Team <absl-team@google.com> - 8689c9a0dc685f50ba843a8d0d7d4274a1ec656a Factor out inline variable detection to separate macro. by Matt Calabrese <calabrese@google.com> - 0eac39ee9d81c03b8335c1cd3871d0dc4ec7bca7 Log the actual and expected durations for failed timing t... by Abseil Team <absl-team@google.com> GitOrigin-RevId: 53419b5e123c4c9c47ecfe52ba747a271b03ae9c Change-Id: I4ae8f5c0e924cdeee253fdf37d483d47893fc64c
Diffstat (limited to 'absl/base/internal/malloc_hook_c.h')
-rw-r--r--absl/base/internal/malloc_hook_c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/base/internal/malloc_hook_c.h b/absl/base/internal/malloc_hook_c.h
index ed41143a..7255ddc2 100644
--- a/absl/base/internal/malloc_hook_c.h
+++ b/absl/base/internal/malloc_hook_c.h
@@ -37,6 +37,7 @@ typedef struct {
/* See malloc_hook.h for documentation for this struct. */
MallocHook_AllocHandle handle;
size_t allocated_size;
+ double weight;
int stack_depth;
const void* stack;
} MallocHook_SampledAlloc;