Remove unneeded white spaces in JSON output
Categories
(Core :: Gecko Profiler, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: mozbugz, Assigned: mozbugz)
References
(Blocks 1 open bug)
Details
Attachments
(14 files)
3.71 KB,
patch
|
Details | Diff | Splinter Review | |
5.94 KB,
patch
|
Details | Diff | Splinter Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
A possible quick win: Remove unneeded white spaces in JSON output. In particular, indents are currently adding a lot of characters!
Thank you Florian for finding out about this issue.
Comment 1•3 years ago
|
||
From what I remember, this mostly worked, but I had a few line breaks left (I think I had one every time a child process profile was joined to the parent profile), which got in the way of writing an automated test.
Comment 2•3 years ago
|
||
This is my previous attempt, which was less finished, but I additionally tried to remove the aStyle parameters that became useless. I stopped and started over because I think removing useless parameters should be split out to a separate patch.
Assignee | ||
Comment 3•3 years ago
|
||
JSON whitespace comprises all spaces and newlines that are not inside strings,
and which could be removed without changing the decoded contents.
This tests the current state of affairs, where JSON whitespace in profiles may
account for up to 25% of the full length.
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D152601
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D152602
Assignee | ||
Comment 6•3 years ago
|
||
Depends on D152603
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D152604
Assignee | ||
Comment 8•3 years ago
|
||
Depends on D152605
Assignee | ||
Comment 9•3 years ago
|
||
These were the last remaining JSON whitespace characters, so we can now our
regression tests can check that there are non of these left.
Depends on D152606
Assignee | ||
Comment 10•3 years ago
|
||
Depends on D152607
Assignee | ||
Comment 11•3 years ago
|
||
Depends on D152608
Assignee | ||
Comment 12•3 years ago
|
||
As a bonus, this adds coverage of getProfileDataAsArrayBuffer()
.
Depends on D152609
Assignee | ||
Comment 13•3 years ago
|
||
Centralize calls to getProfileDataAsync to stop{,Now}AndGetProfile() in shared-head.js.
Depends on D152609
Assignee | ||
Comment 14•3 years ago
|
||
This covers the gc stats' JSONPrinter changes, and would trigger the
verifyJSONStringIsCompact assertion (see next patch) without these changes.
Depends on D152843
Updated•3 years ago
|
Comment 15•3 years ago
|
||
Comment 16•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/182c7d6d14f3
https://hg.mozilla.org/mozilla-central/rev/2b6e8a8a770b
https://hg.mozilla.org/mozilla-central/rev/66cc321b2ff6
https://hg.mozilla.org/mozilla-central/rev/e12a14c0e1a5
https://hg.mozilla.org/mozilla-central/rev/b3cfb0d05ed1
https://hg.mozilla.org/mozilla-central/rev/25718fed7f54
https://hg.mozilla.org/mozilla-central/rev/4fe98d466d30
https://hg.mozilla.org/mozilla-central/rev/1c65183edd44
https://hg.mozilla.org/mozilla-central/rev/8b166af41096
https://hg.mozilla.org/mozilla-central/rev/6f369c2cd337
https://hg.mozilla.org/mozilla-central/rev/4870c2e16d49
https://hg.mozilla.org/mozilla-central/rev/bf26f05745aa
Description
•