new BluebirdPromiseProfiler()
- Source:
Methods
getProfilerResult() → {Object}
Returns back the profiler result as json.
- Source:
Returns:
- Type:
-
Object
Profiler Result is returned which a json with key as promise name and value as its execution time in milliseconds.
resetProfiler()
Resets profiler result, this does not stop further profiling.
- Source:
writeProfilerResultToFile(fullPath)
Writes the profiler result to a .json file.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
fullPath |
string
|
./output.json | Specify the full path with .json extension. |