Bug 1260329 - Properly escape the frameTable when running |dmd.py --clamp-contents|. r=mccr8.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 29 Mar 2016 13:34:57 +1100
changeset 291194 35053f4c889b0c2bec7812a6614d2b3eba2f349a
parent 291193 8f159c5d671e045cecf67b95b1e75b9362937f08
child 291195 5d5b5862ab90e00fcf4c9737dbe4f810f9a7dae3
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1260329
milestone48.0a1
Bug 1260329 - Properly escape the frameTable when running |dmd.py --clamp-contents|. r=mccr8.
memory/replace/dmd/dmd.py
--- a/memory/replace/dmd/dmd.py
+++ b/memory/replace/dmd/dmd.py
@@ -715,17 +715,17 @@ def prettyPrintDmdJson(out, j):
         out.write('\n  "{0}": {1}'.format(k, json.dumps(l)))
         first = False
     out.write('\n },\n')
 
     out.write(' "frameTable": {')
     first = True
     for k, v in j['frameTable'].iteritems():
         out.write('' if first else ',')
-        out.write('\n  "{0}": "{1}"'.format(k, v))
+        out.write('\n  "{0}": {1}'.format(k, json.dumps(v)))
         first = False
     out.write('\n }\n')
 
     out.write('}\n')
 
 
 ##################################################################
 # Code for clamping addresses using conservative pointer analysis.