mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Enabled MOZ_PERF_METRICS in the Mac build:
This commit is contained in:
parent
6caa52057a
commit
a966f87a22
@ -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");
|
||||
|
@ -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.
@ -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.
@ -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.
Binary file not shown.
Loading…
Reference in New Issue
Block a user