From 0a03dd13ac383c1c5efcca322b1812ab711cbd73 Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Sat, 17 Nov 2001 20:23:48 +0000 Subject: [PATCH] Printing the dll name in the timeline r=sgehani, sr=sfraser git-svn-id: svn://10.0.0.236/trunk@108388 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsLocalFileUnix.cpp | 7 +++++++ mozilla/xpcom/io/nsLocalFileWin.cpp | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/io/nsLocalFileUnix.cpp b/mozilla/xpcom/io/nsLocalFileUnix.cpp index 7df641fc29f..bcb851cb92b 100644 --- a/mozilla/xpcom/io/nsLocalFileUnix.cpp +++ b/mozilla/xpcom/io/nsLocalFileUnix.cpp @@ -61,6 +61,7 @@ #include "nsXPIDLString.h" #include "prproces.h" #include "nsISimpleEnumerator.h" +#include "nsITimelineService.h" // we need these for statfs() @@ -1554,7 +1555,13 @@ nsLocalFile::Load(PRLibrary **_retval) CHECK_mPath(); NS_ENSURE_ARG_POINTER(_retval); + NS_TIMELINE_START_TIMER("PR_LoadLibrary"); + *_retval = PR_LoadLibrary(mPath); + + NS_TIMELINE_STOP_TIMER("PR_LoadLibrary"); + NS_TIMELINE_MARK_TIMER1("PR_LoadLibrary", mPath); + if (!*_retval) return NS_ERROR_FAILURE; return NS_OK; diff --git a/mozilla/xpcom/io/nsLocalFileWin.cpp b/mozilla/xpcom/io/nsLocalFileWin.cpp index 64e11218a7e..e443dc2ea30 100644 --- a/mozilla/xpcom/io/nsLocalFileWin.cpp +++ b/mozilla/xpcom/io/nsLocalFileWin.cpp @@ -1155,8 +1155,8 @@ nsLocalFile::Load(PRLibrary * *_retval) NS_TIMELINE_START_TIMER("PR_LoadLibrary"); *_retval = PR_LoadLibrary(mResolvedPath.get()); NS_TIMELINE_STOP_TIMER("PR_LoadLibrary"); - NS_TIMELINE_MARK_TIMER("PR_LoadLibrary"); - + NS_TIMELINE_MARK_TIMER1("PR_LoadLibrary", mResolvedPath.get()); + if (*_retval) return NS_OK;