File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ import {
204204import { kFieldCategories } from "../../project/types/website/listing/website-listing-shared.ts" ;
205205import { isWindows } from "../../deno_ral/platform.ts" ;
206206import { appendToCombinedLuaProfile } from "../../core/performance/perfetto-utils.ts" ;
207+ import { makeTimedFunctionAsync } from "../../core/performance/function-times.ts" ;
207208
208209// in case we are running multiple pandoc processes
209210// we need to make sure we capture all of the trace files
@@ -1233,14 +1234,18 @@ export async function runPandoc(
12331234
12341235 setupPandocEnv ( ) ;
12351236
1237+ const pandocRender = makeTimedFunctionAsync ( "pandoc-render" , async ( ) => {
1238+ return await execProcess (
1239+ {
1240+ cmd,
1241+ cwd,
1242+ env : pandocEnv ,
1243+ } ,
1244+ ) ;
1245+ } ) ;
1246+
12361247 // run pandoc
1237- const result = await execProcess (
1238- {
1239- cmd,
1240- cwd,
1241- env : pandocEnv ,
1242- } ,
1243- ) ;
1248+ const result = await pandocRender ( ) ;
12441249
12451250 // run afterPandoc hooks
12461251 for ( const hook of afterPandocHooks ) {
You can’t perform that action at this time.
0 commit comments