gecko-dev/devtools/shared/heapsnapshot
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
..
tests Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
.gitattributes Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
AutoMemMap.cpp
AutoMemMap.h Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
census-tree-node.js
CoreDump.pb.cc Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
CoreDump.pb.h Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
CoreDump.proto Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
DeserializedNode.cpp Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
DeserializedNode.h Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
FileDescriptorOutputStream.cpp Bug 1201597 - Part 1: Implement an nsIOutputStream for ipc::FileDescriptor; r=mrbkap 2015-09-22 12:09:42 -07:00
FileDescriptorOutputStream.h Bug 1201597 - Part 1: Implement an nsIOutputStream for ipc::FileDescriptor; r=mrbkap 2015-09-22 12:09:42 -07:00
generate-core-dump-sources.sh Bug 912121 - Update misc. DevTools paths and comments. rs=devtools 2015-09-21 12:07:31 -05:00
HeapAnalysesClient.js
HeapAnalysesWorker.js
HeapSnapshot.cpp Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
HeapSnapshot.h Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb 2015-09-30 16:03:31 -07:00
HeapSnapshotFileUtils.js
HeapSnapshotTempFileHelperChild.h Bug 1201597 - Part 2: Add an IPDL subprotocol for opening core dump files to 2015-09-22 12:09:42 -07:00
HeapSnapshotTempFileHelperParent.cpp Bug 1201597 - Part 2: Add an IPDL subprotocol for opening core dump files to 2015-09-22 12:09:42 -07:00
HeapSnapshotTempFileHelperParent.h Bug 1201597 - Part 2: Add an IPDL subprotocol for opening core dump files to 2015-09-22 12:09:42 -07:00
moz.build Bug 1201597 - Part 2: Add an IPDL subprotocol for opening core dump files to 2015-09-22 12:09:42 -07:00
PHeapSnapshotTempFileHelper.ipdl Bug 1201597 - Part 2: Add an IPDL subprotocol for opening core dump files to 2015-09-22 12:09:42 -07:00
ZeroCopyNSIOutputStream.cpp
ZeroCopyNSIOutputStream.h