Enabled MOZ_PERF_METRICS in the Mac build:

This commit is contained in:
pierre%netscape.com 1999-10-21 05:41:45 +00:00
parent 6caa52057a
commit a966f87a22
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.

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

Binary file not shown.

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

Binary file not shown.