summaryrefslogtreecommitdiffstats
path: root/chromium/base/trace_event/memory_dump_request_args.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-23 17:21:03 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-23 16:25:15 +0000
commitc551f43206405019121bd2b2c93714319a0a3300 (patch)
tree1f48c30631c421fd4bbb3c36da20183c8a2ed7d7 /chromium/base/trace_event/memory_dump_request_args.h
parent7961cea6d1041e3e454dae6a1da660b453efd238 (diff)
BASELINE: Update Chromium to 79.0.3945.139
Change-Id: I336b7182fab9bca80b709682489c07db112eaca5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/base/trace_event/memory_dump_request_args.h')
-rw-r--r--chromium/base/trace_event/memory_dump_request_args.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/base/trace_event/memory_dump_request_args.h b/chromium/base/trace_event/memory_dump_request_args.h
index c50a1cb2cfc..d62a0dc84c8 100644
--- a/chromium/base/trace_event/memory_dump_request_args.h
+++ b/chromium/base/trace_event/memory_dump_request_args.h
@@ -58,6 +58,12 @@ enum class MemoryDumpLevelOfDetail : uint32_t {
LAST = DETAILED
};
+// Tells the MemoryDumpProvider(s) if they should try to make the result
+// more deterministic by forcing garbage collection.
+// Keep this consistent with memory_instrumentation.mojo and
+// memory_instrumentation_struct_traits.{h,cc}
+enum class MemoryDumpDeterminism : uint32_t { NONE, FORCE_GC };
+
// Keep this consistent with memory_instrumentation.mojo and
// memory_instrumentation_struct_traits.{h,cc}
struct BASE_EXPORT MemoryDumpRequestArgs {
@@ -68,6 +74,7 @@ struct BASE_EXPORT MemoryDumpRequestArgs {
MemoryDumpType dump_type;
MemoryDumpLevelOfDetail level_of_detail;
+ MemoryDumpDeterminism determinism;
};
// Args for ProcessMemoryDump and passed to OnMemoryDump calls for memory dump
@@ -75,6 +82,8 @@ struct BASE_EXPORT MemoryDumpRequestArgs {
struct MemoryDumpArgs {
// Specifies how detailed the dumps should be.
MemoryDumpLevelOfDetail level_of_detail;
+ // Specifies whether the dumps should be more deterministic.
+ MemoryDumpDeterminism determinism;
// Globally unique identifier. In multi-process dumps, all processes issue a
// local dump with the same guid. This allows the trace importers to