# Objects Methods

<figure><img src="/files/RYFgHNoIMXMyQQHBVuDA" alt=""><figcaption><p>Object Profiling</p></figcaption></figure>

The ColdBox debugger allows you to profile the execution of **ANY** method in **ANY** CFC via our AOP pointcuts. All you need to do is add the `profile` annotation to a method or component declaration in your model/ORM objects. Once you do, the debugger will track the execution of those methods in the debug timers panel for you. First thing to do is make sure the setting is turned on:

```cfscript
requestTracker : {
	// Profile model objects annotated with the `profile` annotation
	profileObjects               : true,
	// If enabled, will trace the results of any methods that are being profiled
	traceObjectResults           : false,
}
```

The `traceObjectResults` if `true` will track the actual results of the method calls into your debugger timer panel. Careful, as we will serialize anything you send to us. Then add the `profile` annotation to any method or CFC.

```js
/**
 * Profile all methods in this component
 */
component profile{

}

// Add the profile to this method to track it
function saveAllObjects() profile{

}
```

Profiling objects is great because you can just annotate and forget. Nothing to turn off in production.  However, just note that doing AOP abstractions on more methods, the more slow downs you will experience, especially on transient objects.  We would recommend that you use it on specific methods only and be very wearisome of using the tracing of object results.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cbdebugger.ortusbooks.com/collectors/objects-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
