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

Side by Side Diff: components/tracing/common/process_metrics_memory_dump_provider.cc

Issue 2028043002: tracing: restructure to the components/tracing folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 "components/tracing/process_metrics_memory_dump_provider.h" 5 #include "components/tracing/common/process_metrics_memory_dump_provider.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_file.h" 13 #include "base/files/scoped_file.h"
14 #include "base/format_macros.h" 14 #include "base/format_macros.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 pmd->process_totals()->set_resident_set_bytes(rss_bytes); 306 pmd->process_totals()->set_resident_set_bytes(rss_bytes);
307 pmd->set_has_process_totals(); 307 pmd->set_has_process_totals();
308 pmd->process_totals()->set_peak_resident_set_bytes(peak_rss_bytes); 308 pmd->process_totals()->set_peak_resident_set_bytes(peak_rss_bytes);
309 309
310 // Returns true even if other metrics failed, since rss is reported. 310 // Returns true even if other metrics failed, since rss is reported.
311 return true; 311 return true;
312 } 312 }
313 313
314 } // namespace tracing 314 } // namespace tracing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698