mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Adding a new interface, nsITimeRecorder, used for adding timing hooks to raptor. The interface exposes methods to start/stop/reset timers and print elapsed time.
This commit is contained in:
parent
5e3aae808c
commit
4f31b00da6
5
modules/libutil/public/MANIFEST_IDL
Normal file
5
modules/libutil/public/MANIFEST_IDL
Normal file
@ -0,0 +1,5 @@
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist:idl directory
|
||||
#
|
||||
|
||||
nsITimeRecorder.idl
|
@ -24,6 +24,12 @@ include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = util
|
||||
|
||||
XPIDL_MODULE = util
|
||||
|
||||
XPIDLSRCS = \
|
||||
nsIFileLocator.idl \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS = $(srcdir)/xp_obs.h $(srcdir)/stopwatch.h
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -18,8 +18,15 @@
|
||||
|
||||
#
|
||||
|
||||
MODULE=util
|
||||
MODULE=util
|
||||
XPIDL_MODULE=util
|
||||
|
||||
DEPTH=..\..\..
|
||||
|
||||
XPIDLSRCS = \
|
||||
.\nsITimeRecorder.idl \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS=xp_obs.h stopwatch.h
|
||||
|
||||
|
||||
|
29
modules/libutil/public/nsITimeRecorder.idl
Normal file
29
modules/libutil/public/nsITimeRecorder.idl
Normal file
@ -0,0 +1,29 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "License"); you may not use this file except in
|
||||
* compliance with the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS"
|
||||
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
||||
* the License for the specific language governing rights and limitations
|
||||
* under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are Copyright (C) 1998
|
||||
* Netscape Communications Corporation. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[scriptable, uuid(0e5f5cb6-6d29-11d3-aef7-00108300ff91)]
|
||||
interface nsITimeRecorder : nsISupports
|
||||
{
|
||||
void ResetTimer(in PRUint32 aTimerID);
|
||||
void StartTimer(in PRUint32 aTimerID);
|
||||
void StopTimer(in PRUint32 aTimerID);
|
||||
void PrintTimer(in PRUint32 aTimerID);
|
||||
};
|
Loading…
Reference in New Issue
Block a user