File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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_000 L) |> 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
You can’t perform that action at this time.
0 commit comments