initial perf, which gets stripped out in production (#4131)

This commit is contained in:
Josh Ponelat
2018-05-30 22:44:19 +02:00
committed by kyle
parent d91e4e84b8
commit 5ea2150ae7
9 changed files with 61 additions and 8 deletions

View File

@@ -104,6 +104,10 @@ export const resolveSpec = (json, url) => ({specActions, specSelectors, errActio
let specStr = specSelectors.specStr()
/* develblock:start */
require("root/src/perf").start("resolve")
/* develblock:end */
return resolve({
fetch,
spec: json,
@@ -131,6 +135,9 @@ export const resolveSpec = (json, url) => ({specActions, specSelectors, errActio
errActions.newThrownErrBatch(preparedErrors)
}
/* develblock:start */
require("root/src/perf").stop("resolve")
/* develblock:end */
return specActions.updateResolved(spec)
})
}