ProfileAction

DebugActions. ProfileAction

An action 'profile' that starts or stops the javascript profiler, supports only 1 profile running at a time if another profile is running, that is stopped first before starting a new.

Constructor

new ProfileAction()

Source:
Examples
// Starts the profiler, and gives it the given name
{
    "profile": {
        "name": "A name for your profile"
    }
}
// Starts the profiler, and gives it the given name, shorthand version
{
    "profile": "A name for your profile"
}
// Stops the currently running profile
{
    "profile": null
}