MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / constructor

Function constructor

tools/xsbug/ProfilePane.js:41–60  ·  view source on GitHub ↗
(id, name, path, line)

Source from the content-addressed store, hash-verified

39
40class ProfileRecord @ "PiuProfileDelete" {
41 constructor(id, name, path, line) {
42 this.id = id;
43 this.name = name || "(anonymous)";
44 this.path = path;
45 this.line = line;
46 if (path)
47 this.where = system.getPathName(path) + " (" + line +")";
48 else
49 this.where = "";
50 this.hitCount = 0;
51 this.duration = 0;
52 this.propagated = false;
53 this.propagation = 0;
54 this.callees = [];
55 this.callees.expanded = id == 0;
56 this.callees.sorted = false;
57 this.callers = [];
58 this.callers.expanded = false;
59 this.callers.sorted = false;
60 }
61 hit(delta) {
62 this.hitCount++;
63 this.duration += delta;

Callers 4

DebugBehavior.jsFile · 0.70
tool.jsFile · 0.50
serial.jsFile · 0.50
jsonparser.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected