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:
@@ -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.
Reference in New Issue
Block a user