Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private _instantiateProfiler () {
const profiler = new Profiler(this._getProfilerConfig())
this.ioc.singleton('Adonis/Src/Profiler', () => profiler)
this.ioc.alias('Adonis/Src/Profiler', 'Profiler')
/**
* Attach subscriber if exists
*/
if (this._profilerSubscriber) {
profiler.subscribe(this._profilerSubscriber)
}
this._bootstrapper = profiler.create('bootstrap', { intent: this._intent })
}