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
Родитель b3b8eb8172
Коммит 09a2031926
4 изменённых файлов: 43 добавлений и 1 удалений

Просмотреть файл

Просмотреть файл

@ -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

Просмотреть файл

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