jankometer.h revision 3345a6884c488ff3a535c2c9acdd33d74b37e311
1// Copyright (c) 2009 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_JANKOMETER_H_ 6#define CHROME_BROWSER_JANKOMETER_H_ 7#pragma once 8 9class CommandLine; 10 11// The Jank-O-Meter measures jankyness, which is user-perceivable lag in 12// responsiveness of the application. 13// 14// It will log such "lag" events to the metrics log. 15// 16// This function will initialize the service, which will install itself in 17// critical threads. It should be called on the UI thread. 18void InstallJankometer(const CommandLine& parsed_command_line); 19 20// Clean up Jank-O-Meter junk 21void UninstallJankometer(); 22 23#endif // CHROME_BROWSER_JANKOMETER_H_ 24