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:
nisheeth%netscape.com 1999-09-17 20:30:23 +00:00
parent 5e3aae808c
commit 4f31b00da6
4 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,5 @@
#
# This is a list of local files which get copied to the mozilla:dist:idl directory
#
nsITimeRecorder.idl

View File

@ -24,6 +24,12 @@ include $(DEPTH)/config/autoconf.mk
MODULE = util MODULE = util
XPIDL_MODULE = util
XPIDLSRCS = \
nsIFileLocator.idl \
$(NULL)
EXPORTS = $(srcdir)/xp_obs.h $(srcdir)/stopwatch.h EXPORTS = $(srcdir)/xp_obs.h $(srcdir)/stopwatch.h
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk

View File

@ -18,8 +18,15 @@
# #
MODULE=util MODULE=util
XPIDL_MODULE=util
DEPTH=..\..\.. DEPTH=..\..\..
XPIDLSRCS = \
.\nsITimeRecorder.idl \
$(NULL)
EXPORTS=xp_obs.h stopwatch.h EXPORTS=xp_obs.h stopwatch.h

View 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);
};