(fn: F, customName?: string)
| 176 | } |
| 177 | |
| 178 | function profileFunction<F extends Function>(fn: F, customName?: string): F { |
| 179 | return profileFunctionFactory<F>(fn, customName || fn.name); |
| 180 | } |
| 181 | |
| 182 | const profileMethodUnnamed = (target: Object, key: symbol | string, descriptor) => { |
| 183 | // save a reference to the original method this way we keep the values currently in the |