Skip to content

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

Open
ThinkerYzu wants to merge 2 commits intobgirard:masterfrom
ThinkerYzu:tasktracer-json
Open

Move data of tasktracer to the right place in the JSON object.#68
ThinkerYzu wants to merge 2 commits intobgirard:masterfrom
ThinkerYzu:tasktracer-json

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.

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