Home
last modified time | relevance | path

Searched refs:MemoryAllocatorDump (Results 1 – 9 of 9) sorted by relevance

/external/libchrome/base/trace_event/
Dmemory_allocator_dump_unittest.cc29 MemoryAllocatorDump* root_heap = in OnMemoryDump()
32 root_heap->AddScalar(MemoryAllocatorDump::kNameSize, in OnMemoryDump()
33 MemoryAllocatorDump::kUnitsBytes, 4096); in OnMemoryDump()
34 root_heap->AddScalar(MemoryAllocatorDump::kNameObjectCount, in OnMemoryDump()
35 MemoryAllocatorDump::kUnitsObjects, 42); in OnMemoryDump()
40 MemoryAllocatorDump* sub_heap = in OnMemoryDump()
42 sub_heap->AddScalar(MemoryAllocatorDump::kNameSize, in OnMemoryDump()
43 MemoryAllocatorDump::kUnitsBytes, 1); in OnMemoryDump()
44 sub_heap->AddScalar(MemoryAllocatorDump::kNameObjectCount, in OnMemoryDump()
45 MemoryAllocatorDump::kUnitsObjects, 3); in OnMemoryDump()
[all …]
Dmemory_allocator_dump.cc18 const char MemoryAllocatorDump::kNameSize[] = "size";
19 const char MemoryAllocatorDump::kNameObjectCount[] = "object_count";
20 const char MemoryAllocatorDump::kTypeScalar[] = "scalar";
21 const char MemoryAllocatorDump::kTypeString[] = "string";
22 const char MemoryAllocatorDump::kUnitsBytes[] = "bytes";
23 const char MemoryAllocatorDump::kUnitsObjects[] = "objects";
25 MemoryAllocatorDump::MemoryAllocatorDump(const std::string& absolute_name, in MemoryAllocatorDump() function in base::trace_event::MemoryAllocatorDump
45 MemoryAllocatorDump::MemoryAllocatorDump(const std::string& absolute_name, in MemoryAllocatorDump() function in base::trace_event::MemoryAllocatorDump
47 : MemoryAllocatorDump(absolute_name, in MemoryAllocatorDump()
56 MemoryAllocatorDump::~MemoryAllocatorDump() { in ~MemoryAllocatorDump()
[all …]
Dprocess_memory_dump.h52 std::unordered_map<std::string, std::unique_ptr<MemoryAllocatorDump>>;
87 MemoryAllocatorDump* CreateAllocatorDump(const std::string& absolute_name);
88 MemoryAllocatorDump* CreateAllocatorDump(const std::string& absolute_name,
93 MemoryAllocatorDump* GetAllocatorDump(const std::string& absolute_name) const;
95 MemoryAllocatorDump* GetOrCreateAllocatorDump(
102 MemoryAllocatorDump* CreateSharedGlobalAllocatorDump(
111 MemoryAllocatorDump* CreateWeakSharedGlobalAllocatorDump(
115 MemoryAllocatorDump* GetSharedGlobalAllocatorDump(
185 MemoryAllocatorDump* AddAllocatorDumpInternal(
186 std::unique_ptr<MemoryAllocatorDump> mad);
[all …]
Dprocess_memory_dump.cc164 MemoryAllocatorDump* ProcessMemoryDump::CreateAllocatorDump( in CreateAllocatorDump()
167 WrapUnique(new MemoryAllocatorDump(absolute_name, this))); in CreateAllocatorDump()
170 MemoryAllocatorDump* ProcessMemoryDump::CreateAllocatorDump( in CreateAllocatorDump()
174 WrapUnique(new MemoryAllocatorDump(absolute_name, this, guid))); in CreateAllocatorDump()
177 MemoryAllocatorDump* ProcessMemoryDump::AddAllocatorDumpInternal( in AddAllocatorDumpInternal()
178 std::unique_ptr<MemoryAllocatorDump> mad) { in AddAllocatorDumpInternal()
188 MemoryAllocatorDump* inserted_mad = insertion_result.first->second.get(); in AddAllocatorDumpInternal()
194 MemoryAllocatorDump* ProcessMemoryDump::GetAllocatorDump( in GetAllocatorDump()
204 MemoryAllocatorDump* ProcessMemoryDump::GetOrCreateAllocatorDump( in GetOrCreateAllocatorDump()
206 MemoryAllocatorDump* mad = GetAllocatorDump(absolute_name); in GetOrCreateAllocatorDump()
[all …]
Dmalloc_dump_provider.cc144 MemoryAllocatorDump* outer_dump = pmd->CreateAllocatorDump("malloc"); in OnMemoryDump()
145 outer_dump->AddScalar("virtual_size", MemoryAllocatorDump::kUnitsBytes, in OnMemoryDump()
147 outer_dump->AddScalar(MemoryAllocatorDump::kNameSize, in OnMemoryDump()
148 MemoryAllocatorDump::kUnitsBytes, resident_size); in OnMemoryDump()
151 MemoryAllocatorDump* inner_dump = pmd->CreateAllocatorDump(kAllocatedObjects); in OnMemoryDump()
152 inner_dump->AddScalar(MemoryAllocatorDump::kNameSize, in OnMemoryDump()
153 MemoryAllocatorDump::kUnitsBytes, in OnMemoryDump()
160 MemoryAllocatorDump* other_dump = in OnMemoryDump()
162 other_dump->AddScalar(MemoryAllocatorDump::kNameSize, in OnMemoryDump()
163 MemoryAllocatorDump::kUnitsBytes, in OnMemoryDump()
Dmemory_allocator_dump.h27 class BASE_EXPORT MemoryAllocatorDump {
37 MemoryAllocatorDump(const std::string& absolute_name,
40 MemoryAllocatorDump(const std::string& absolute_name,
42 ~MemoryAllocatorDump();
104 DISALLOW_COPY_AND_ASSIGN(MemoryAllocatorDump);
Dtrace_event_memory_overhead.cc144 MemoryAllocatorDump* mad = pmd->CreateAllocatorDump(dump_name); in DumpInto()
145 mad->AddScalar(MemoryAllocatorDump::kNameSize, in DumpInto()
146 MemoryAllocatorDump::kUnitsBytes, in DumpInto()
148 mad->AddScalar("resident_size", MemoryAllocatorDump::kUnitsBytes, in DumpInto()
150 mad->AddScalar(MemoryAllocatorDump::kNameObjectCount, in DumpInto()
151 MemoryAllocatorDump::kUnitsObjects, it.second.count); in DumpInto()
Dprocess_memory_dump_unittest.cc81 ASSERT_EQ(MemoryAllocatorDump::Flags::DEFAULT, shared_mad1->flags()); in TEST()
83 ASSERT_EQ(MemoryAllocatorDump::Flags::WEAK, shared_mad2->flags()); in TEST()
153 ASSERT_TRUE(MemoryAllocatorDump::Flags::WEAK & shared_mad2->flags()); in TEST()
218 ASSERT_EQ(MemoryAllocatorDump::Flags::WEAK, shared_mad1->flags()); in TEST()
222 ASSERT_EQ(MemoryAllocatorDump::Flags::WEAK, shared_mad1->flags()); in TEST()
226 ASSERT_EQ(MemoryAllocatorDump::Flags::WEAK, shared_mad1->flags()); in TEST()
230 ASSERT_EQ(MemoryAllocatorDump::Flags::DEFAULT, shared_mad1->flags()); in TEST()
234 ASSERT_EQ(MemoryAllocatorDump::Flags::DEFAULT, shared_mad1->flags()); in TEST()
243 MemoryAllocatorDump* black_hole_mad = pmd->GetBlackHoleMad(); in TEST()
/external/libmojo/base/trace_event/
Djava_heap_dump_provider_android.cc34 MemoryAllocatorDump* outer_dump = pmd->CreateAllocatorDump("java_heap"); in OnMemoryDump()
35 outer_dump->AddScalar(MemoryAllocatorDump::kNameSize, in OnMemoryDump()
36 MemoryAllocatorDump::kUnitsBytes, total_heap_size); in OnMemoryDump()
38 MemoryAllocatorDump* inner_dump = in OnMemoryDump()
40 inner_dump->AddScalar(MemoryAllocatorDump::kNameSize, in OnMemoryDump()
41 MemoryAllocatorDump::kUnitsBytes, in OnMemoryDump()