[email protected] | 16e0efd | 2009-07-08 03:58:29 | [diff] [blame] | 1 | // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
[email protected] | 16e0efd | 2009-07-08 03:58:29 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_JANKOMETER_H_ |
6 | #define CHROME_BROWSER_JANKOMETER_H_ | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 7 | |
[email protected] | 2f3b1cc | 2014-03-17 23:07:15 | [diff] [blame] | 8 | namespace base { |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 9 | class CommandLine; |
[email protected] | 2f3b1cc | 2014-03-17 23:07:15 | [diff] [blame] | 10 | } |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 11 | |
12 | // The Jank-O-Meter measures jankyness, which is user-perceivable lag in | ||||
13 | // responsiveness of the application. | ||||
14 | // | ||||
15 | // It will log such "lag" events to the metrics log. | ||||
16 | // | ||||
17 | // This function will initialize the service, which will install itself in | ||||
18 | // critical threads. It should be called on the UI thread. | ||||
[email protected] | 2f3b1cc | 2014-03-17 23:07:15 | [diff] [blame] | 19 | void InstallJankometer(const base::CommandLine& parsed_command_line); |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 20 | |
21 | // Clean up Jank-O-Meter junk | ||||
22 | void UninstallJankometer(); | ||||
23 | |||||
[email protected] | 16e0efd | 2009-07-08 03:58:29 | [diff] [blame] | 24 | #endif // CHROME_BROWSER_JANKOMETER_H_ |