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

Side by Side Diff: chrome/browser/mac/mac_startup_profiler.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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
« no previous file with comments | « chrome/browser/mac/keystone_registration.h ('k') | chrome/browser/mac/relauncher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_MAC_MAC_STARTUP_PROFILER_H_ 5 #ifndef CHROME_BROWSER_MAC_MAC_STARTUP_PROFILER_H_
6 #define CHROME_BROWSER_MAC_MAC_STARTUP_PROFILER_H_ 6 #define CHROME_BROWSER_MAC_MAC_STARTUP_PROFILER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h"
10 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
11 #include "base/time/time.h" 12 #include "base/time/time.h"
12 13
13 // A lightweight profiler of startup performance. Records UMA metrics for the 14 // A lightweight profiler of startup performance. Records UMA metrics for the
14 // time delta between Chrome's launch and major initialization phases. 15 // time delta between Chrome's launch and major initialization phases.
15 class MacStartupProfiler { 16 class MacStartupProfiler {
16 public: 17 public:
17 // Returns pointer to the singleton instance for the current process. 18 // Returns pointer to the singleton instance for the current process.
18 static MacStartupProfiler* GetInstance(); 19 static MacStartupProfiler* GetInstance();
19 20
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Keeps track of the time at which each initialization phase was reached. 54 // Keeps track of the time at which each initialization phase was reached.
54 std::map<Location, base::TimeTicks> profiled_ticks_; 55 std::map<Location, base::TimeTicks> profiled_ticks_;
55 56
56 // Whether UMA metrics have been recorded. Only record UMA metrics once. 57 // Whether UMA metrics have been recorded. Only record UMA metrics once.
57 bool recorded_metrics_; 58 bool recorded_metrics_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(MacStartupProfiler); 60 DISALLOW_COPY_AND_ASSIGN(MacStartupProfiler);
60 }; 61 };
61 62
62 #endif // CHROME_BROWSER_MAC_MAC_STARTUP_PROFILER_H_ 63 #endif // CHROME_BROWSER_MAC_MAC_STARTUP_PROFILER_H_
OLDNEW
« no previous file with comments | « chrome/browser/mac/keystone_registration.h ('k') | chrome/browser/mac/relauncher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698