Method

# SaveProfile

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

If profiling is on, this method causes the profiling information to be immediately saved to a file.

## Usage

``` xojo
SaveProfile
```

## Notes

This method allows you to control when profiling data is saved in case your code is resulting in your app crashing and thus not saving profile data.

## Compatibility

|                       |                               |
|-----------------------|-------------------------------|
| **Project Types**     | Console, Desktop, Mobile, Web |
| **Operating Systems** | iOS, Linux, macOS, Windows    |

<div class="seealso">

`Code Profiler</getting_started/debugging/code_profiler>`

</div>
