Displaying 5 results from an estimated 5 matches for "alloc_count".
2020 Sep 08
0
[libnbd PATCH] hack for testing python closure leaks: NOT FOR COMMIT
...n.ml
index 4a96cf6..2ff17dd 100644
--- a/generator/Python.ml
+++ b/generator/Python.ml
@@ -578,9 +578,27 @@ let generate_python_methods_c () =
pr " PyObject *buf; /* Optional pointer to persistent buffer. */\n";
pr "};\n";
pr "\n";
+ pr "static size_t alloc_count;\n";
+ pr "void\n";
+ pr "dump_alloc_count (void)\n";
+ pr "{\n";
+ pr " char *cmd;\n";
+ pr " if (!alloc_count) return;\n";
+ pr " asprintf (&cmd, \"{ echo ' *** alloc_count:%%zu'; cat /proc/%%d/cmdline; } > /...
2020 Jun 24
7
RFC: Sanitizer-based Heap Profiler
...on timestamp (for lifetime computation) and deallocation
cpu id (to determine migrations) are recorded along with the information in
the chunk header recorded on allocation.
The prototyped HIB object tracks the following:
struct HeapInfoBlock {
// Total allocations at this stack context
u32 alloc_count;
// Access count computed from all allocated 64-byte blocks (track total
// across all allocations, and the min and max).
u64 total_access_count, min_access_count, max_access_count;
// Allocated size (track total across all allocations, and the min and
max).
u64 total_size;
u32 mi...
2020 Jul 05
2
RFC: Sanitizer-based Heap Profiler
...id (to determine migrations) are recorded along with the information in
> the chunk header recorded on allocation.
>
>
>
> The prototyped HIB object tracks the following:
>
>
>
> struct HeapInfoBlock {
>
> // Total allocations at this stack context
>
> u32 alloc_count;
>
> // Access count computed from all allocated 64-byte blocks (track total
>
> // across all allocations, and the min and max).
>
> u64 total_access_count, min_access_count, max_access_count;
>
> // Allocated size (track total across all allocations, and the min an...
2020 Jun 25
1
RFC: Sanitizer-based Heap Profiler
...pu id (to determine
> migrations) are recorded along with the information in the chunk
> header recorded on allocation.
>
>
> The prototyped HIB object tracks the following:
>
>
> struct HeapInfoBlock {
>
> // Total allocations at this stack context
>
> u32 alloc_count;
>
> // Access count computed from all allocated 64-byte blocks (track total
>
> // across all allocations, and the min and max).
>
> u64 total_access_count, min_access_count, max_access_count;
>
> // Allocated size (track total across all allocations, and the min
&...
2020 Jul 09
2
RFC: Sanitizer-based Heap Profiler
...migrations) are recorded along with the information in
>> the chunk header recorded on allocation.
>>
>> The prototyped HIB object tracks the following:
>>
>> struct HeapInfoBlock {
>>
>> // Total allocations at this stack context
>>
>> u32 alloc_count;
>>
>> // Access count computed from all allocated 64-byte blocks (track total
>>
>> // across all allocations, and the min and max).
>>
>> u64 total_access_count, min_access_count, max_access_count;
>>
>> // Allocated size (track total across...