Closed Bug 707800 Opened 13 years ago Closed 13 years ago

Add more sampler labels

Categories

(Core :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: jrmuizel, Assigned: jrmuizel)

Details

(Whiteboard: [Snappy:P1])

Attachments

(2 files, 1 obsolete file)

      No description provided.
Attachment #579140 - Flags: review?(bgirard)
Whiteboard: [Snappy:P1]
Attachment #579140 - Flags: review?(bgirard) → review+
Attachment #579140 - Attachment is obsolete: true
Attachment #579773 - Flags: review?
Attachment #579773 - Flags: review? → review+
Attachment #579791 - Flags: review?(bgirard)
Comment on attachment 579791 [details] [diff] [review]
Rename SAMPLE_CHECKPOINT to SAMPLE_LABEL

You should fold these patch IMO
Attachment #579791 - Flags: review?(bgirard) → review+
I missed that you added:
'#define SAMPLER_RESPONSIVENESS(time)' to one of the patch. I don't think this should go in the tree.
Please set assignee when attaching or else when landed :-)

https://hg.mozilla.org/mozilla-central/rev/3de0addfa544
https://hg.mozilla.org/mozilla-central/rev/c79de7ae8a57
Assignee: nobody → jmuizelaar
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Comment on attachment 579773 [details] [diff] [review]
Add a bunch of labels that should help v2


>@@ -3191,6 +3197,7 @@ nsJSContext::CycleCollectNow(nsICycleCollectorListener *aListener)
>     return;
>   }
> 
>+  SAMPLE_LABEL("GC", "CycleCollectNow");

I don't know what the first parameter means, but
why does CycleCollectNow have "GC"?
Cycle collection is cycle collection, not garbage collection.

>diff --git a/xpcom/threads/nsTimerImpl.cpp b/xpcom/threads/nsTimerImpl.cpp
>index 90d122f..3884b17 100644
>--- a/xpcom/threads/nsTimerImpl.cpp
>+++ b/xpcom/threads/nsTimerImpl.cpp
>@@ -44,6 +44,7 @@
> #include "nsThreadManager.h"
> #include "nsThreadUtils.h"
> #include "prmem.h"
>+#include "sampler.h"
> 
> using mozilla::TimeDuration;
> using mozilla::TimeStamp;
>@@ -376,6 +377,8 @@ void nsTimerImpl::Fire()
>   if (mCanceled)
>     return;
> 
>+  SAMPLE_LABEL("Timer", "Fire");
>+
Did any xpcom peer actually review this? Is it ok that xpcom/ depends always on tools/? I would have assumed some #ifdef was needed.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: