Files
firefox/memory/replace/dmd/test/script-diff-dark-matter1.json
T
Nicholas Nethercote 175ee20d94 Bug 1121830 - DMD: add "num" property to blocks in the output. r=mccr8.
The new "num" property lets identical blocks be aggregated in the output. This
patch only uses the "num" property for dead blocks, because that's where the
greatest potential benefit lies, but it could be used for live blocks as well.

On one test case (a complex PDF file) running with --mode=cumulative
--sample-below=1 this patch had the following effects.

- Change in running speed was negligible.

- Compressed output file size dropped from 8.8 to 5.0 MB.

- Compressed output file size dropped from 297 to 50 MB.

- dmd.py runtime (without stack fixing) dropped from 30 to 8 seconds.
2015-01-15 20:38:38 -08:00

55 lines
1.4 KiB
JSON

{
"version": 4,
"invocation": {
"dmdEnvVar": "--mode=dark-matter --sample-below=127",
"mode": "dark-matter",
"sampleBelowSize": 127
},
"blockList": [
{"req": 4096, "alloc": "A", "num": 4},
{"req": 4096, "alloc": "B", "num": 3},
{"req": 4096, "alloc": "B"},
{"req": 4096, "alloc": "C", "num": 2},
{"req": 4096, "alloc": "C", "num": 2},
{"req": 4096, "alloc": "D", "reps": ["R1"], "num": 2},
{"req": 2000, "slop": 48, "alloc": "D", "reps": ["R1"]},
{"req": 15360, "alloc": "F"},
{"req": 512, "alloc": "F", "num": 2},
{ "alloc": "F"},
{"req": 1024, "alloc": "F", "reps": ["R1"]},
{ "alloc": "F", "reps": ["R1"]},
{"req": 1000, "slop": 24, "alloc": "F", "reps": ["R1", "R2"]},
{ "alloc": "F", "reps": ["R1", "R2"]},
{"req": 4096, "alloc": "G"},
{"req": 8192, "alloc": "G"},
{"req": 16384, "alloc": "G"}
],
"traceTable": {
"A": ["AA"],
"B": ["BB"],
"C": ["CC"],
"D": ["DD"],
"E": ["EE"],
"F": ["FF"],
"G": ["GG"],
"R1": ["RR1"],
"R2": ["RR2"]
},
"frameTable": {
"AA": "#00: A (A.cpp:99)",
"BB": "#00: B (B.cpp:99)",
"CC": "#00: C (C.cpp:99)",
"DD": "#00: D (D.cpp:99)",
"EE": "#00: E (E.cpp:99)",
"FF": "#00: F (F.cpp:99)",
"GG": "#00: G (G.cpp:99)",
"RR1": "#00: R1 (R1.cpp:99)",
"RR2": "#00: R2 (R2.cpp:99)"
}
}