Skip to content

Commit

Permalink
feat(debug): update segment timer section name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaisthorpe committed Sep 8, 2024
1 parent aed739f commit bc5dc7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-seas-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tedengine/ted': patch
---

Update segment timer section label to performance
2 changes: 1 addition & 1 deletion packages/ted/src/debug/segment-timer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class TSegmentTimer {
private debugPanel: TDebugPanel,
label: string,
) {
this.debugSection = debugPanel.addSection(label, true);
this.debugSection = debugPanel.addSection(label, false);
}

startSegment(name: string): () => void {
Expand Down
2 changes: 1 addition & 1 deletion packages/ted/src/engine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class TEngine {
};

this.debugPanel = new TDebugPanel(this.events, config.debugPanelOpen, this);
this.segmentTimer = new TSegmentTimer(this.debugPanel, 'Segment Timer');
this.segmentTimer = new TSegmentTimer(this.debugPanel, 'Performance');
}

async onMessage(ev: MessageEvent) {
Expand Down

0 comments on commit bc5dc7f

Please sign in to comment.