gecko-dev/devtools
Nick Fitzgerald 30e17cfd82 Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb
This changeset replaces all of the

    // char16_t[]
    optional bytes someProperty = 1;

one- and two-byte string properties in the CoreDump.proto protobuf definition
file with:

    oneof {
        // char16_t[]
        bytes  someProperty    = 1;
        uint64 somePropertyRef = 2;
    }

The first time the N^th unique string is serialized, then someProperty is used
and the full string is serialized in the protobuf message. All following times
that string is serialized, somePropertyRef is used and its value is N.

Among the other things, this also changes JS::ubi::Edge::name from a raw pointer
with commented rules about who does or doesn't own and should and shouldn't free
the raw pointer to a UniquePtr that enforces those rules rather than relying on
developers reading and obeying the rules in the comments.
2015-09-30 16:03:31 -07:00
..
client Merge m-c to inbound a=merge 2015-09-30 14:10:21 -07:00
server Merge m-c to inbound a=merge 2015-09-30 14:10:21 -07:00
shared Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
.eslintignore
.eslintrc Bug 1196785 - Drive-by fix DevTools ESLint config. r=pbrosset 2015-09-28 05:49:00 +02:00
.eslintrc.mochitests
.eslintrc.xpcshell
templates.mozbuild