(id, name, path, line)
| 39 | |
| 40 | class 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; |
no outgoing calls
no test coverage detected