Enabled MOZ_PERF_METRICS in the Mac build:

- updated DefinesMozilla.h
- fixed stopwatch.cpp
- created libutilIDL.mcp
- added StopWatch exports to libutil.exp
- added xpcom.shlb to libutil.mcp
- added libutil.shlb to htmlparser.mcp, layout.mcp, webshell.mcp


git-svn-id: svn://10.0.0.236/trunk@51365 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pierre%netscape.com
1999-10-21 05:41:45 +00:00
parent 68467cb1bb
commit 6b7990dcc7
9 changed files with 20 additions and 2 deletions

View File

@@ -839,6 +839,7 @@ sub BuildIDLProjects()
}
BuildIDLProject(":mozilla:modules:libpref:macbuild:libprefIDL.mcp", "libpref");
BuildIDLProject(":mozilla:modules:libutil:macbuild:libutilIDL.mcp", "libutil");
BuildIDLProject(":mozilla:modules:libjar:macbuild:libjarIDL.mcp", "libjar");
BuildIDLProject(":mozilla:modules:oji:macbuild:ojiIDL.mcp", "oji");
BuildIDLProject(":mozilla:js:macbuild:XPConnectIDL.mcp", "xpconnect");

View File

@@ -90,4 +90,7 @@
#define DETECT_WEBSHELL_LEAKS 1
//#define MOZ_PERF_METRICS 1 // Uncomment to get metrics in layout, parser and webshell.
// You also need to define __TIMESIZE_DOUBLE__ in <timesize.mac.h>
#endif /* DefinesMozilla_h_ */

Binary file not shown.

View File

@@ -8,3 +8,15 @@ XP_NotifyObservers
XP_DisableObserverNotification
XP_EnableObserverNotification
XP_IsObserverNotificationEnabled
Print__9StopwatchFv
GetCPUTime__9StopwatchFv
GetRealTime__9StopwatchFv
CpuTime__9StopwatchFv
RealTime__9StopwatchFv
Continue__9StopwatchFv
RestoreState__9StopwatchFv
SaveState__9StopwatchFv
Stop__9StopwatchFv
Start__9StopwatchFi
__dt__9StopwatchFv
__ct__9StopwatchFv

View File

@@ -130,7 +130,8 @@ double Stopwatch::CpuTime() {
double Stopwatch::GetRealTime(){
#if defined(R__MAC)
return(double)clock() / gTicks;
// return(double)clock() / gTicks;
return(double)clock() / 1000000L;
#elif defined(R__UNIX)
struct tms cpt;
return (double)times(&cpt) / gTicks;
@@ -150,7 +151,8 @@ double Stopwatch::GetRealTime(){
double Stopwatch::GetCPUTime(){
#if defined(R__MAC)
return(double)clock() / gTicks;
// return(double)clock() / gTicks;
return(double)clock();
#elif defined(R__UNIX)
struct tms cpt;
times(&cpt);