From e10e091fec6b989d6c9cbbed75ea555d791b47c1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 4 Jun 2020 19:34:32 +0000 Subject: [PATCH] --- devdocs/tools.txt | 5 +++++ server/AyaNova/util/ServiceProviderProvider.cs | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/devdocs/tools.txt b/devdocs/tools.txt index ab3a3517..130ea128 100644 --- a/devdocs/tools.txt +++ b/devdocs/tools.txt @@ -739,3 +739,8 @@ https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-trace Might be doing GC Counts incorrectly, they don't sync up with the dotnet-counters tool which shows them drop back to zero regularly when I stop burn test https://michaelscodingspot.com/ways-to-cause-memory-leaks-in-dotnet/ https://bennettadelson.wordpress.com/2013/04/11/using-perfview-to-diagnose-a-net-memory-leak-2/ + +HOW TO SEE WHO CALLED A METHOD DURING RUNTIME +keywords: caller, call method stack trace stacktrace +//System.Diagnostics.Debug.WriteLine((new System.Diagnostics.StackTrace()).GetFrame(1).GetMethod().Name); +//System.Diagnostics.Debug.WriteLine((new System.Diagnostics.StackTrace()).ToString().Substring(56,80)); \ No newline at end of file diff --git a/server/AyaNova/util/ServiceProviderProvider.cs b/server/AyaNova/util/ServiceProviderProvider.cs index 6691cc00..9bf4d4a3 100644 --- a/server/AyaNova/util/ServiceProviderProvider.cs +++ b/server/AyaNova/util/ServiceProviderProvider.cs @@ -28,10 +28,6 @@ namespace AyaNova.Util { get { - // System.Diagnostics.Debug.WriteLine((new System.Diagnostics.StackTrace()).GetFrame(1).GetMethod().Name); - - // System.Diagnostics.Debug.WriteLine((new System.Diagnostics.StackTrace()).ToString().Substring(56,80)); - return Scope.ServiceProvider.GetRequiredService(); } }