HomeDocumentationAPI Reference
Getting StartedAPI ReferenceHelp CenterVideo Tours

Session Profiler

The Session Profiler captures the state of the device as well as the app for up to 60 seconds before the report is sent.

In case you would like to disable the Session Profiler, you can use this API.

Instabug.setSessionProfilerEnabled(false)
[Instabug setSessionProfilerEnabled:NO];
Instabug.setSessionProfilerState(Feature.State.ENABLED);
Instabug.setSessionProfilerEnabled(true);
//can only be done through the initial activate method
cordova.plugins.instabug.activate(
    {
        ios: 'MY_IOS_TOKEN'
    },
    cordova.plugins.bugReporting.invocationEvents.shake,
    {
       enableSessionProfiler: true
    },
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);
Instabug.SetSessionProfilerEnabled(true);
Instabug.setSessionProfilerEnabled(true);