2
0
mirror of synced 2025-01-12 07:04:21 +00:00
2017-06-30 17:23:32 +01:00

20 lines
371 B
JavaScript

export default class Trace {
constructor(perf: Object, identifier: string) {
this.perf = perf;
this.identifier = identifier;
}
start() {
this.perf._native.start(this.identifier);
}
stop() {
this.perf._native.stop(this.identifier);
}
incrementCounter(event: string) {
this.perf._native.incrementCounter(this.identifier, event);
}
}