Skip to content

Commit 79eef44

Browse files
committed
* Ability for the custom timeIt() functions to accept metdata to store in the execution timer
* `timeIt()` helper was not passing the closure correctly
1 parent 68b6349 commit 79eef44

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
* Ability to open CFCs that are profiled by the WireBox Collector in any Code Editor.
1818
* Ability to open the Handler events that are profiled by the Request Collector in any Code Editor.
1919
* New life-cycle events: onDebuggerUnload, onDebuggerLoad
20+
* Ability for the custom `timeIt()` functions to accept metdata to store in the execution timer
2021

2122
### Fixed
2223

2324
* Timer service reconstructing the timer hashes and profilers twice.
25+
* `timeIt()` helper was not passing the closure correctly
2426

2527
### Changed
2628

helpers/Mixins.cfm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@
4747
*
4848
* @label The label to use as a timer label
4949
* @closure The target to execute and time
50+
* @metadata A struct of metadata to store in the execution timer
5051
*/
51-
function cbTimeIt( required label, required closure ){
52-
return variables.wirebox.getInstance( "Timer@cbdebugger" ).timeIt( arguments.label );
52+
function cbTimeIt( required label, required closure, struct metadata = {} ){
53+
return variables.wirebox.getInstance( "Timer@cbdebugger" ).timeIt( argumentCollection=arguments );
5354
}
5455
5556
/**

0 commit comments

Comments
 (0)