Method

# StopProfiling

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

## Description

Stops the Code Profiler from gathering profiling information.

## Usage

``` xojo
StopProfiling
```

## Notes

Call this method in the App.Opening event to stop the Code Profiler from profiling all the code in your app. You can then call `StartProfiling</api/compiler_directives/startprofiling>` in only the methods you want to profile.

## Compatibility

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

<div class="seealso">

`StartProfiling</api/compiler_directives/startprofiling>` method; `Code Profiler</getting_started/debugging/code_profiler>` topic

</div>
