Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move data of tasktracer to the right place in the JSON object. #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ThinkerYzu
Copy link

The data of tasktracer is placed in profileJSON of the JSON object from Gecko Profiler, but Cleopatra expects to see it at the root of the JSON object. This change move the data to the place where Cleopatra likes to see.

@@ -325,6 +325,9 @@ function parseRawProfile(requestID, params, rawProfile) {
case "profileJSONWithSymbolicationTable,1":
symbolicationTable = rawProfile.symbolicationTable;
parseProfileJSON(rawProfile.profileJSON);
if (rawProfile.profileJSON.tasktracer) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're mixing rawProfile.profileJSON.tasktracer vs rawProfile.tasktracer here.

We don't have existing saved profiles we need to support so we don't need to move the tasktracer sub-object. We should pick where we want it to be live and always look for it there.

@bgirard
Copy link
Owner

bgirard commented Jul 20, 2016

I'll merge with once we stop moving tasktracer but rather make sure everything is looking for it at the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants