mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
14412dba88
- Bug 1200795, part 1 - Eliminate excessive detail from cycle collector graph memory reporting. r=njn (8775704ad4)
- Bug 1200795, part 2 - Add memory reporting for CCGraph::mPtrToNodeMap. r=njn (154912392e)
- Bug 1202670 - Move most of nsCycleCollector::RemoveObjectFromGraph into CCGraph. r=smaug (78b449602d)
- Bug 1163006, part 1 - Make the cycle collector use the concrete logger class. r=smaug (a23f4adfd3)
- Bug 1163657 - Clean up setting of mFlags in CCGraphBuilder's ctor. r=smaug (c49fa66d20)
- Bug 1163006, part 2 - Rename various cycle collector listener variables to logger. r=smaug (c655503d1b)
- Bug 1163006, part 3 - Clean up some cycle collector logger set up code. r=smaug (9825ec8e80)
- Bug 1163006, part 4 - De-COM the nsICycleCollectorListener methods we only call from C++. r=smaug (39e579782f)
- Bug 1163006, part 5 - Add a less COM-y getter for mWantAllTraces. r=smaug (70c424197e)
- Bug 1152505 - CCGraphBuilder::NoteChild should pass aEdgeName by reference. r=smaug (25ffabb54c)
- Bug 1189122 - Assert when we Suspect() when a CC scan is in progress. r=smaug (ae997c0fec)
- Bug 1189829 - fix quadratic behavior in nsConsoleService; r=erahm (2b37337085)
- Bug 1189231 - Impl operator->* to nsAutoPtr. r=nfroyd (a491e0e775)
- Bug 1196050 - Replace NSCAP_Zero usage with decltype(nullptr). r=froydnj (4b4d411103)
- Bug 1196925 - Remove the non-existing relocatable store buffer counts from about:memory; r=njn (d030d12a81)
- Bug 1123237 - Part 2. MemoryProfiler hooks in js engine. r=terrence (e3495c3520)
- Bug 1196847 - Part 1: Allow storage of a unique id for a cell independent of address; r=jonco (53b94846f1)
- Bug 1207730 - Update comments in Barrier.h and sort classes in same order; r=sfink (ba3abf54cb)
- Bug 1196847 - Part 2: Implement a cell hasher that uses unique id based hashes; r=jonco (3811c58b7a)
- Bug 1196848 - Add Zone::uniqueIds to about:memory reports; r=njn (bff35eb98c)
- Bug 1123237 - Part 3. Monitoring allocation and gc events in nursery and tenured heaps. r=terrence (47cc20bb98)
- Bug 1123237 - Part 4. Monitoring allocations and frees for ArrayBuffer. r=terrence,sfink (3495e46571)
- Bug 1123237 - Part 5. Don't emit inline allocation when memory profiler enabled. r=terrence (b4b44652d0)
- Bug 1123237 - Part 6. A new API to get backtrace without allocating memory in profiler. r=mstange (eff2d42cbd)
- Bug 1123237 - Part 7. XPCOM interface for memory profiler. r=smaug (f3a85f8181)
- Bug 1123237 - Part 8. Tracking the memory events. r=BenWa,terrence (8694fa4ad4)
- Bug 1123237 - Part 9. Interface to memory-profiler add-ons. r=jimb (1f8ed472ad)
- Bug 1123237 - Part 10. Expose SwapElements from nsBaseHashtable. r=nfroyd (a2e06425ad)
- Bug 1123237 - Part 11. Don't use STL in memory-profiler. r=BenWa,cervantes (c13096634c)
- Bug 1123237 - Part 12. Fix GC hazards. r=terrence (64776fc60e)
- Bug 1194424 - Part 0: Extend the core dump protobuf message format to accomodate allocation stacks; r=sfink (d25ca13aec)
- Bug 1167292 - Part 1: Add a telemetry probe to time how long it takes to save a heap snapshot; r=ejpbruel (25a9047d18)
- Bug 1167292 - Part 2: Add a telemetry probe to time how long it takes to read a heap snapshot; r=ejpbruel (71e3bb5fe3)
- Bug 1167292 - Part 3: Add telemetry probes for node and edge counts when saving heap snapshots; r=ejpbruel (7985b9edf6)
- Bug 1187062 - Part 0: Make js::Debugger::getObjectAllocationSite return a SavedFrame* rather than a JSObject*; r=sfink (0ec4175b9c)
- Bug 1204613 - Add a static_assert that ProfileEntry::{Flags,Category} do not overlap; r=djvj (a2d3672676)
- Bug 1204168 - Add the js::ProfileEntry::setCategory method; r=djvj (dce07b7eb4)
96 lines
4.4 KiB
Protocol Buffer
96 lines
4.4 KiB
Protocol Buffer
/* -*- Mode: protobuf; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
* vim: set ts=8 sts=4 et sw=4 tw=99:
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// # Core Dumps
|
|
//
|
|
// A core dump is a serialized snapshot of the heap graph. We serialize the heap
|
|
// as a series of protobuf messages with each message prefixed by its Varint32
|
|
// byte size so we can delimit individual protobuf messages (protobuf parsers
|
|
// cannot determine where a message ends on their own).
|
|
//
|
|
// The first protobuf message is an instance of the `Metadata` message. All
|
|
// subsequent messages will be instances of the `Node` message. The first of
|
|
// these `Node` messages is the root node of the serialized heap graph. Here is
|
|
// a diagram of our core dump format:
|
|
//
|
|
// +-----------------------------------------------------------------------+
|
|
// | Varint32: The size of following `Metadata` message. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | message: The core dump `Metadata` message. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | Varint32: The size of the following `Node` message. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | message: The first `Node` message. This is the root node. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | Varint32: The size of the following `Node` message. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | message: A `Node` message. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | Varint32: The size of the following `Node` message. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | message: A `Node` message. |
|
|
// +-----------------------------------------------------------------------+
|
|
// | . |
|
|
// | . |
|
|
// | . |
|
|
// +-----------------------------------------------------------------------+
|
|
//
|
|
// In practice, certain message fields have a lot of duplication (such as type
|
|
// or edge name strings). Rather than try and de-duplicate this information at
|
|
// the protobuf message and field level, core dumps should be written with
|
|
// `google::protobuf::io::GzipOutputStream` and read from
|
|
// `google::protobuf::io::GzipInputStream`.
|
|
|
|
package mozilla.devtools.protobuf;
|
|
|
|
// A collection of metadata about this core dump.
|
|
message Metadata {
|
|
// Number of microseconds since midnight (00:00:00) 1 January 1970 UTC.
|
|
optional uint64 timeStamp = 1;
|
|
}
|
|
|
|
// A serialized version of `JS::ubi::StackFrame`. Older parent frame tails are
|
|
// de-duplicated to cut down on [de]serialization and size costs.
|
|
message StackFrame {
|
|
oneof StackFrameType {
|
|
// This is the first time this stack frame has been serialized, and so
|
|
// here is all of its data.
|
|
Data data = 1;
|
|
// A reference to a stack frame that has already been serialized and has
|
|
// the given number as its id.
|
|
uint64 ref = 2;
|
|
}
|
|
|
|
message Data {
|
|
optional uint64 id = 1;
|
|
optional StackFrame parent = 2;
|
|
optional uint32 line = 3;
|
|
optional uint32 column = 4;
|
|
// char16_t[]
|
|
optional bytes source = 5;
|
|
// char16_t[]
|
|
optional bytes functionDisplayName = 6;
|
|
optional bool isSystem = 7;
|
|
optional bool isSelfHosted = 8;
|
|
}
|
|
}
|
|
|
|
// A serialized version of `JS::ubi::Node` and its outgoing edges.
|
|
message Node {
|
|
optional uint64 id = 1;
|
|
// char16_t[]
|
|
optional bytes typeName = 2;
|
|
optional uint64 size = 3;
|
|
repeated Edge edges = 4;
|
|
optional StackFrame allocationStack = 5;
|
|
}
|
|
|
|
// A serialized edge from the heap graph.
|
|
message Edge {
|
|
optional uint64 referent = 1;
|
|
// char16_t[]
|
|
optional bytes name = 2;
|
|
} |