From be7874976bd2b5cfcbafb06362bbef4f155479b4 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Sun, 9 Aug 1998 20:28:04 +0000 Subject: [PATCH] Added context parameter to timing macros. git-svn-id: svn://10.0.0.236/trunk@7635 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/include/timing.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mozilla/include/timing.h b/mozilla/include/timing.h index 68bb292070d..9a8be5713c4 100644 --- a/mozilla/include/timing.h +++ b/mozilla/include/timing.h @@ -161,9 +161,10 @@ do {\ * @param op A C-string that is the "operation" that is being * performed. * @param obj A pointer to an object. + * @param cx A pointer to the MWContext. * @param msg A message to include in the log entry. */ -#define TIMING_STOPCLOCK_OBJECT(op, obj, msg) \ +#define TIMING_STOPCLOCK_OBJECT(op, obj, cx, msg) \ do {\ char buf[256];\ PR_snprintf(buf, sizeof(buf), "%s,%08x", op, obj);\ @@ -172,7 +173,8 @@ do {\ PRUint32 nElapsed;\ TimingStopClock(&tmElapsed, buf);\ LL_L2UI(nElapsed, tmElapsed);\ - TimingWriteMessage("clock,%s,%ld,%s", buf, nElapsed, msg);\ + TimingWriteMessage("clock,%s,%ld,%08x,%s",\ + buf, nElapsed, cx, msg);\ }\ } while (0) @@ -216,7 +218,7 @@ do {\ * @param name A C-string that is the name for the timer. * @param msg A message to include in the log entry. */ -#define TIMING_STOPCLOCK_NAME(op, name, msg) \ +#define TIMING_STOPCLOCK_NAME(op, name, cx, msg) \ do {\ char buf[256];\ PR_snprintf(buf, sizeof(buf), "%s,%.64s", op, name);\ @@ -225,7 +227,8 @@ do {\ PRUint32 nElapsed;\ TimingStopClock(&tmElapsed, buf);\ LL_L2UI(nElapsed, tmElapsed);\ - TimingWriteMessage("clock,%s,%ld,%s", buf, nElapsed, msg);\ + TimingWriteMessage("clock,%s,%ld,%08x,%s",\ + buf, nElapsed, cx, msg);\ }\ } while (0)