Skip to content

Commit 0dfe61c

Browse files
committed
Making console table markdown friendly (to be directly copy-pastable)
1 parent b3c5e63 commit 0dfe61c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Compiler/Utilities/Activity.fs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,13 @@ module internal Activity =
106106
ActivityStarted = (fun a -> a.AddTag(gcStatsInnerTag, collectGCStats ()) |> ignore),
107107
ActivityStopped =
108108
(fun a ->
109-
if isNull a then
110-
printfn "%A" a
111-
// houston problem
112109
let statsBefore = a.GetTagItem(gcStatsInnerTag) :?> GCStats
113110
let statsAfter = collectGCStats ()
114111
let p = Process.GetCurrentProcess()
115112
a.AddTag(Tags.workingSetMB, p.WorkingSet64 / 1_000_000L) |> ignore
116113
a.AddTag(Tags.handles, p.HandleCount) |> ignore
117114
a.AddTag(Tags.threads, p.Threads.Count) |> ignore
118115

119-
if isNull statsBefore then
120-
printfn "Houston problem %A" a
121-
122116
for i = 0 to statsAfter.Length - 1 do
123117
a.AddTag($"gc{i}", statsAfter[i] - statsBefore[i]) |> ignore)
124118

@@ -159,7 +153,7 @@ module internal Activity =
159153

160154
Console.WriteLine(new String('-', header.Length))
161155
Console.WriteLine(header)
162-
Console.WriteLine(new String('-', header.Length))
156+
Console.WriteLine(header |> String.map (fun c -> if c = '|' then c else '-'))
163157

164158
ActivitySource.AddActivityListener(consoleWriterListener)
165159

0 commit comments

Comments
 (0)