MCPcopy Create free account
hub / github.com/bytebase/bytebase / end

Method end

frontend/src/utils/TinyTimer.ts:36–49  ·  view source on GitHub ↗
(tag: T, loops = 1)

Source from the content-addressed store, hash-verified

34 this.begins[tag] = now();
35 }
36 end(tag: T, loops = 1) {
37 if (isRelease()) return;
38
39 const begin = this.begins[tag];
40 // begin timestamp not found, give up
41 if (!begin) return;
42 const end = now();
43 const elapsed = end - begin;
44 const entry =
45 this.entires[tag] ?? (this.entires[tag] = emptyTimerEntry(tag));
46 entry.count++;
47 entry.loops += loops;
48 entry.time += elapsed;
49 }
50 print(tag: T) {
51 if (isRelease()) return;
52

Callers 9

mergeMethod · 0.80
mergeSchemasMethod · 0.80
mergeTablesMethod · 0.80
mergeTablePartitionsMethod · 0.80
mergeColumnsMethod · 0.80
diffColumnMethod · 0.80
mergeViewsMethod · 0.80
mergeProceduresMethod · 0.80
mergeFunctionsMethod · 0.80

Calls 3

isReleaseFunction · 0.90
nowFunction · 0.85
emptyTimerEntryFunction · 0.85

Tested by

no test coverage detected