ScreenTrace allows you to record a custom screen rendering trace of slow and frozen frames. Throws on constructor if hardware acceleration is off or if Android is 9.0 or 9.1.
android Android !== 9.0.0 && Adnroid !== 9.1.0
Starts a new screen trace. Does nothing if already started.
try { const trace = firebase.perf().newScreenTrace('FooScreen'); await trace.start();} catch (e) {} Copy
try { const trace = firebase.perf().newScreenTrace('FooScreen'); await trace.start();} catch (e) {}
android Android >= 9.0.0
Stops and sends the screen trace.
try { const trace = firebase.perf().newScreenTrace('FooScreen'); await trace.start(); await trace.stop();} catch (e) {} Copy
try { const trace = firebase.perf().newScreenTrace('FooScreen'); await trace.start(); await trace.stop();} catch (e) {}
ScreenTrace allows you to record a custom screen rendering trace of slow and frozen frames. Throws on constructor if hardware acceleration is off or if Android is 9.0 or 9.1.
Platform
android Android !== 9.0.0 && Adnroid !== 9.1.0