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

Side by Side Diff: base/trace_event/memory_dump_manager.h

Issue 2766173003: memory-infra: Fill the memory dump callback result (2/2) (Closed)
Patch Set: rebase for struct change Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ 5 #ifndef BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
6 #define BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ 6 #define BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 }; 292 };
293 293
294 static const int kMaxConsecutiveFailuresCount; 294 static const int kMaxConsecutiveFailuresCount;
295 static const char* const kSystemAllocatorPoolName; 295 static const char* const kSystemAllocatorPoolName;
296 296
297 MemoryDumpManager(); 297 MemoryDumpManager();
298 ~MemoryDumpManager() override; 298 ~MemoryDumpManager() override;
299 299
300 static void SetInstanceForTesting(MemoryDumpManager* instance); 300 static void SetInstanceForTesting(MemoryDumpManager* instance);
301 static uint32_t GetDumpsSumKb(const std::string&, const ProcessMemoryDump*); 301 static uint32_t GetDumpsSumKb(const std::string&, const ProcessMemoryDump*);
302 static void FillOsDumpFromProcessMemoryDump(
303 MemoryDumpCallbackResult::OSMemDump&,
304 ProcessMemoryDump*);
302 static void FinalizeDumpAndAddToTrace( 305 static void FinalizeDumpAndAddToTrace(
303 std::unique_ptr<ProcessMemoryDumpAsyncState> pmd_async_state); 306 std::unique_ptr<ProcessMemoryDumpAsyncState> pmd_async_state);
304 307
305 // Internal, used only by MemoryDumpManagerDelegate. 308 // Internal, used only by MemoryDumpManagerDelegate.
306 // Creates a memory dump for the current process and appends it to the trace. 309 // Creates a memory dump for the current process and appends it to the trace.
307 // |callback| will be invoked asynchronously upon completion on the same 310 // |callback| will be invoked asynchronously upon completion on the same
308 // thread on which CreateProcessDump() was called. 311 // thread on which CreateProcessDump() was called.
309 void CreateProcessDump(const MemoryDumpRequestArgs& args, 312 void CreateProcessDump(const MemoryDumpRequestArgs& args,
310 const MemoryDumpCallback& callback); 313 const MemoryDumpCallback& callback);
311 314
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 } 414 }
412 415
413 private: 416 private:
414 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate); 417 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate);
415 }; 418 };
416 419
417 } // namespace trace_event 420 } // namespace trace_event
418 } // namespace base 421 } // namespace base
419 422
420 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ 423 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/memory_dump_manager.cc » ('j') | base/trace_event/memory_dump_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698