Skip to content

Commit 4618764

Browse files
committed
more granularity
1 parent 524cd17 commit 4618764

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Compiler/Driver/ParseAndCheckInputs.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,9 @@ let CheckOneInput
12921292
}
12931293

12941294
/// Typecheck a single file (or interactive entry into F# Interactive)
1295-
let TypeCheckOneInputEntry (ctok, checkForErrors, tcConfig: TcConfig, tcImports, tcGlobals, prefixPathOpt) tcState inp =
1295+
let TypeCheckOneInputEntry (ctok, checkForErrors, tcConfig: TcConfig, tcImports, tcGlobals, prefixPathOpt) tcState (inp: ParsedInput) =
1296+
use tcOneInputActivity = activitySource.StartActivity("CheckOneInput")
1297+
tcOneInputActivity.AddTag("inputName", inp.FileName) |> ignore<_>
12961298
// 'use' ensures that the warning handler is restored at the end
12971299
use unwindEL =
12981300
PushDiagnosticsLoggerPhaseUntilUnwind(fun oldLogger ->
@@ -1341,6 +1343,7 @@ let CheckClosedInputSetFinish (declaredImpls: CheckedImplFile list, tcState) =
13411343
tcState, declaredImpls, ccuContents
13421344

13431345
let CheckClosedInputSet (ctok, checkForErrors, tcConfig, tcImports, tcGlobals, prefixPathOpt, tcState, inputs) =
1346+
use tcActivity = activitySource.StartActivity("CheckClosedInputSet")
13441347
// tcEnvAtEndOfLastFile is the environment required by fsi.exe when incrementally adding definitions
13451348
let results, tcState =
13461349
(tcState, inputs)

0 commit comments

Comments
 (0)