ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / base / trace_event / process_memory_dump.cc
blob5363db559c32151712dc128e74d44f1933bbec00
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
3 // found in the LICENSE file.
5 #include "base/trace_event/process_memory_dump.h"
7 #include "base/trace_event/process_memory_totals.h"
8 #include "base/trace_event/trace_event_argument.h"
10 namespace base {
11 namespace trace_event {
13 ProcessMemoryDump::ProcessMemoryDump()
14 : has_process_totals_(false), has_process_mmaps_(false) {
17 ProcessMemoryDump::~ProcessMemoryDump() {
20 void ProcessMemoryDump::AsValueInto(TracedValue* value) const {
21 // Build up the [dumper name] -> [value] dictionary.
22 if (has_process_totals_) {
23 value->BeginDictionary("process_totals");
24 process_totals_.AsValueInto(value);
25 value->EndDictionary();
27 if (has_process_mmaps_) {
28 value->BeginDictionary("process_mmaps");
29 process_mmaps_.AsValueInto(value);
30 value->EndDictionary();
34 } // namespace trace_event
35 } // namespace base