Lines Matching full:profile
10 function instrument(imports, profile) { argument
22 profile[full_name] = {name: full_name, count: 0, total: 0}; variable
27 var data = profile[full_name];
40 function dumpProfile(profile) { argument
42 for (let key in profile) {
44 let data = profile[key];
48 print(`--- Import profile for instance ${profile.instanceNum} ---`);
77 let profile = {}; variable
78 let promise = orig_instantiate(m, instrument(imports, profile), ...args);
80 instanceMap.set(instance, profile);
81 all_profiles.push(profile);
82 profile.instanceNum = instanceCounter++;
91 let profile = {};
92 args[1] = instrument(args[1], profile);
94 instanceMap.set(instance, profile);
95 all_profiles.push(profile);
96 profile.instanceNum = instanceCounter++;
103 let profile = instanceMap.get(instance);
104 if (profile === undefined) return;
105 dumpProfile(profile);
109 let profile = instanceMap.get(instance);
110 if (profile === undefined) return;
111 for (let key in profile) {
120 for (let profile of all_profiles) dumpProfile(profile);