function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Does '' have 'Aspect Oriented Programming'?

When using technologies (e.g. Apex or the point-and-click app logic),  is there support for Aspect Oriented Programming?
For example I'm looking for an easy way to inject my custom code before/after  major business functions, in order to measure how long they took. Or in order to audit them.

Maros SitkoMaros Sitko
Pobably you should look at the triggers.  A trigger is a piece of code that executes before or after records of a particular type are inserted, updated, or deleted from the platform database.

Maros Sitko
Salesforce Developer (" target="_blank)
You will have to write something on your own.
When I have to time something, I have to start and stop the timers.
If I need to store these times, I save first to a variable, then save the variable.