Frames-per-second meter

Logging frames-per-second statistics for your app requires the "fps-meter" module.

import * as fpsMeter from "tns-core-modules/fps-meter";

Start and stop logging

var callbackId = fpsMeter.addCallback(function (fps: number, minFps: number) {
    console.info("fps=" + fps + " minFps=" + minFps);
});
fpsMeter.start();
////...
fpsMeter.removeCallback(callbackId);
fpsMeter.stop();
Is this article helpful? Yes / No
Thank you for your feedback!

Tell us how we can improve this article

NativeScript
NativeScript is licensed under the Apache 2.0 license .
© Progress Software Corporation. All Rights Reserved.