MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / startFPSMeter

Function startFPSMeter

apps/ui/src/issues/issue-7469-page.ts:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4let callbackId;
5let fpsLabel: any;
6export function startFPSMeter() {
7 callbackId = addCallback((fps: number, minFps: number) => {
8 // console.log(`Frames per seconds: ${fps.toFixed(2)}`);
9 // console.log(minFps.toFixed(2));
10 if (fpsLabel) {
11 fpsLabel.text = `${fps}`;
12 }
13 });
14 start();
15}
16
17export function stopFPSMeter() {
18 removeCallback(callbackId);

Callers 1

pageLoadedFunction · 0.85

Calls 2

addCallbackFunction · 0.90
startFunction · 0.90

Tested by

no test coverage detected