blob: 1829df9a31b3c3916343888f785d639280e8bd61 [file] [log] [blame]
/* -*- Mode: Javascript; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
"use strict";
load('utility.js');
load('annotations.js');
load('loadCallgraph.js');
if (typeof arguments[0] != 'string')
throw "Usage: computeGCFunctions.js <callgraph.txt>";
print("Time: " + new Date);
loadCallgraph(arguments[0]);
for (var name in gcFunctions) {
print("");
print("GC Function: " + name);
do {
name = gcFunctions[name];
print(" " + name);
} while (name in gcFunctions);
}
for (var name in suppressedFunctions) {
print("");
print("Suppressed Function: " + name);
}