Set Ready For Review
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
kSelfProfiling = 2,This is not used anywhere. I assume that this will be used from Blink? I further assume that there will be a change in DevTools frontend to make use of this information?
Can you file a crbug so that we can track the rationale of this change and the associated CLs?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Jack, could you take a cursory look at this? Also, I anticipate a frontend change based on this.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
kSelfProfiling = 2,This is not used anywhere. I assume that this will be used from Blink? I further assume that there will be a change in DevTools frontend to make use of this information?
Can you file a crbug so that we can track the rationale of this change and the associated CLs?
Yes, it will be used from blink. The CL description is long, so it got cut off but the associated CLs are at the bottom along with the crbug.
Related CLs:
DevTools CL: https://crrev.com/c/6877206
Chromium CL: https://crrev.com/c/6874588
Bug: 375614293
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
kSelfProfiling = 2,Issack JohnThis is not used anywhere. I assume that this will be used from Blink? I further assume that there will be a change in DevTools frontend to make use of this information?
Can you file a crbug so that we can track the rationale of this change and the associated CLs?
Yes, it will be used from blink. The CL description is long, so it got cut off but the associated CLs are at the bottom along with the crbug.
Related CLs:
DevTools CL: https://crrev.com/c/6877206
Chromium CL: https://crrev.com/c/6874588Bug: 375614293
Indeed I overlooked the content below the fold. Thanks!
I'd still like Jack to take a look, especially in combination with the DevTools CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
kSelfProfiling = 2,Issack JohnThis is not used anywhere. I assume that this will be used from Blink? I further assume that there will be a change in DevTools frontend to make use of this information?
Can you file a crbug so that we can track the rationale of this change and the associated CLs?
Yang GuoYes, it will be used from blink. The CL description is long, so it got cut off but the associated CLs are at the bottom along with the crbug.
Related CLs:
DevTools CL: https://crrev.com/c/6877206
Chromium CL: https://crrev.com/c/6874588Bug: 375614293
Indeed I overlooked the content below the fold. Thanks!
I'd still like Jack to take a look, especially in combination with the DevTools CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Jack, could you take a cursory look at this? Also, I anticipate a frontend change based on this.
Gentle ping. jacktfranklin@ 😊
kSelfProfiling = 2,Issack JohnThis is not used anywhere. I assume that this will be used from Blink? I further assume that there will be a change in DevTools frontend to make use of this information?
Can you file a crbug so that we can track the rationale of this change and the associated CLs?
Yang GuoYes, it will be used from blink. The CL description is long, so it got cut off but the associated CLs are at the bottom along with the crbug.
Related CLs:
DevTools CL: https://crrev.com/c/6877206
Chromium CL: https://crrev.com/c/6874588Bug: 375614293
Issack JohnIndeed I overlooked the content below the fold. Thanks!
I'd still like Jack to take a look, especially in combination with the DevTools CL.
SGTM
Apologies for the delay here - this LGTM (I cannot +1 as I don't have the required permissions on V8). I will leave a few notes on the frontend CL but broadly this looks like a great improvement so thank you!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm
kInternal = 3,nit: Can you add one-liners to the fields? `kUnspecified` vs `kInternal` could use a clarification.
enum class CpuProfileSource : uint8_t {nit: Please add a small comment explaining the enum.
const char* CpuProfileSourceToTraceString(v8::CpuProfileSource source) {nit: `ToString()` is fine as we use the same convention in e.g. `globals.h`, see https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;l=1427?q=globals.h&ss=chromium
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
nit: Can you add one-liners to the fields? `kUnspecified` vs `kInternal` could use a clarification.
Done
Issack JohnThis is not used anywhere. I assume that this will be used from Blink? I further assume that there will be a change in DevTools frontend to make use of this information?
Can you file a crbug so that we can track the rationale of this change and the associated CLs?
Yang GuoYes, it will be used from blink. The CL description is long, so it got cut off but the associated CLs are at the bottom along with the crbug.
Related CLs:
DevTools CL: https://crrev.com/c/6877206
Chromium CL: https://crrev.com/c/6874588Bug: 375614293
Issack JohnIndeed I overlooked the content below the fold. Thanks!
I'd still like Jack to take a look, especially in combination with the DevTools CL.
Jack FranklinSGTM
Apologies for the delay here - this LGTM (I cannot +1 as I don't have the required permissions on V8). I will leave a few notes on the frontend CL but broadly this looks like a great improvement so thank you!
Thank you for the review! 😊
nit: Please add a small comment explaining the enum.
Done
const char* CpuProfileSourceToTraceString(v8::CpuProfileSource source) {nit: `ToString()` is fine as we use the same convention in e.g. `globals.h`, see https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;l=1427?q=globals.h&ss=chromium
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[profiler] Add CpuProfileSource to distinguish concurrent profile streams
DevTools merges concurrent CPU profile streams on the same thread, which
corrupts JavaScript attribution when multiple profiling sources are active
simultaneously. For example, when JS Self-Profiling API runs concurrently
with internal V8 tracing, their samples get incorrectly merged into a
single profile.
This CL adds a CpuProfileSource enum to tag profile events at their source,
enabling DevTools to keep streams separate and maintain correct attribution.
JS Self-Profiling will pass kSelfProfiling in follow-up Chromium CL
Related CLs:
DevTools CL: https://crrev.com/c/6877206
Chromium CL: https://crrev.com/c/6874588
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |