summaryrefslogtreecommitdiffstats
path: root/chrome/browser/jankometer.h
blob: d4ce5ca4dbd9fc4906654664607567f0a4b4e993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_JANKOMETER_H_
#define CHROME_BROWSER_JANKOMETER_H_

namespace base {
class CommandLine;
}

// The Jank-O-Meter measures jankyness, which is user-perceivable lag in
// responsiveness of the application.
//
// It will log such "lag" events to the metrics log.
//
// This function will initialize the service, which will install itself in
// critical threads. It should be called on the UI thread.
void InstallJankometer(const base::CommandLine& parsed_command_line);

// Clean up Jank-O-Meter junk
void UninstallJankometer();

#endif  // CHROME_BROWSER_JANKOMETER_H_