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();

Stay connected with NativeScript

(expect a newsletter every 4-8 weeks)

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