■ ■ ■ ■ ■ ■
Src/ES.Taipan.Infrastructure/Network/SeleniumDriver.fs
| skipped 182 lines |
183 | 183 | | _driver.Value.Quit() |
184 | 184 | | |
185 | 185 | | member this.ExecuteScript(httpRequest: HttpRequest, scriptSrc: String, args: Object) = |
| 186 | + | let a = GC.GetTotalMemory(true) |
186 | 187 | | lock _syncRoot (fun () -> |
187 | 188 | | let mutable result: Dictionary<String, Object> option = None |
188 | 189 | | let urlData = Uri.UnescapeDataString(httpRequest.Source.Value.DocumentHtml) |
| skipped 109 lines |
298 | 299 | | with _ as ex -> |
299 | 300 | | _log?Exception(ex.Message, ex.StackTrace) |
300 | 301 | | |
| 302 | + | Console.WriteLine("Used memory: {0}", GC.GetTotalMemory(true) - a) |
301 | 303 | | result |
302 | 304 | | ) |
303 | 305 | | |
| skipped 3 lines |