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

Side by Side Diff: base/trace_event/heap_profiler_stack_frame_deduplicator.cc

Issue 1546033002: Switch to standard integer types in base/trace_event/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" 5 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 #include <utility> 10 #include <utility>
9 11
10 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
11 #include "base/trace_event/trace_event_argument.h" 13 #include "base/trace_event/trace_event_argument.h"
12 #include "base/trace_event/trace_event_memory_overhead.h" 14 #include "base/trace_event/trace_event_memory_overhead.h"
13 15
14 namespace base { 16 namespace base {
15 namespace trace_event { 17 namespace trace_event {
16 18
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 for (const FrameNode& node : frames_) 106 for (const FrameNode& node : frames_)
105 maps_size += node.children.size() * sizeof(std::pair<StackFrame, int>); 107 maps_size += node.children.size() * sizeof(std::pair<StackFrame, int>);
106 108
107 overhead->Add("StackFrameDeduplicator", 109 overhead->Add("StackFrameDeduplicator",
108 sizeof(StackFrameDeduplicator) + maps_size + frames_allocated, 110 sizeof(StackFrameDeduplicator) + maps_size + frames_allocated,
109 sizeof(StackFrameDeduplicator) + maps_size + frames_resident); 111 sizeof(StackFrameDeduplicator) + maps_size + frames_resident);
110 } 112 }
111 113
112 } // namespace trace_event 114 } // namespace trace_event
113 } // namespace base 115 } // namespace base
OLDNEW
« no previous file with comments | « base/trace_event/heap_profiler_heap_dump_writer_unittest.cc ('k') | base/trace_event/heap_profiler_type_name_deduplicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698