Closed Bug 1157870 Opened 11 years ago Closed 11 years ago

Performance Groups should have a unique id

Categories

(Toolkit :: Performance Monitoring, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: Yoric, Assigned: Yoric)

References

Details

Attachments

(2 files)

Right now, we have bugs such as bug 1151240 because we don't have a reliable way of checking whether two instances of PerformanceData are attached to the same piece of code. We need to fix this.
Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem
Attachment #8614816 - Flags: review?(jdemooij)
Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop
Attachment #8614817 - Flags: review?(dtownsend)
Comment on attachment 8614816 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem https://reviewboard.mozilla.org/r/9829/#review8961 r=me with nits addressed. ::: js/src/vm/Runtime.cpp:964 (Diff revision 1) > + : stopwatch_(nullptr) > + , iteration_(0) > + , uid(JS_GetRuntime(cx)->stopwatch.uniqueId()) > + , key_(key) > + , refCount_(0) Nit: indent these 5 lines with 2 instead of 4 spaces. ::: js/src/vm/Runtime.h:1617 (Diff revision 1) > + uint64_t idCounter_; This value should be initialized to 0 in the Stopwatch constructor. ::: js/src/vm/Runtime.cpp:966 (Diff revision 1) > + , uid(JS_GetRuntime(cx)->stopwatch.uniqueId()) Inside JS, you can use cx->runtime() instead of JS_GetRuntime.
Attachment #8614816 - Flags: review?(jdemooij) → review+
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop https://reviewboard.mozilla.org/r/9831/#review8987 Ship It!
Attachment #8614817 - Flags: review?(dtownsend) → review+
Attachment #8614816 - Flags: review+ → review?(jdemooij)
Comment on attachment 8614816 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop
Attachment #8614817 - Flags: review+ → review?(dtownsend)
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop https://reviewboard.mozilla.org/r/9831/#review9021 Ship It!
Attachment #8614817 - Flags: review?(dtownsend) → review+
Comment on attachment 8614816 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem
Attachment #8614816 - Flags: review?(jdemooij)
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop
Attachment #8614817 - Flags: review+
Assignee: nobody → dteller
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop
Attachment #8614817 - Flags: review?(dtownsend)
Attachment #8614817 - Flags: review?(dtownsend)
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop
Needs rebasing.
Keywords: checkin-needed
Attachment #8614816 - Flags: review?(jdemooij)
Comment on attachment 8614816 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop
Attachment #8614817 - Flags: review?(dtownsend)
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop https://reviewboard.mozilla.org/r/9831/#review9763 Ship It!
Attachment #8614817 - Flags: review?(dtownsend) → review+
Attachment #8614816 - Flags: review?(jdemooij)
Comment on attachment 8614816 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem Bug 1157870 - Performance Groups should have a unique ID (low-level);r=jandem
Comment on attachment 8614817 [details] MozReview Request: Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop Bug 1157870 - Performance Groups should have a unique ID (high-level);r=mossop
Attachment #8614817 - Flags: review+
Well, Try looks good even when you repeat the right tests :)
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: