From 830354f83b7730c452babc3be51b245f2b15ec48 Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Mon, 17 Jun 2024 18:51:41 -0700 Subject: [PATCH] Delete output from notebook --- .../Examples/GCAnalysisExamples.ipynb | 300 +++--------------- 1 file changed, 41 insertions(+), 259 deletions(-) diff --git a/src/benchmarks/gc/GC.Infrastructure/Notebooks/Examples/GCAnalysisExamples.ipynb b/src/benchmarks/gc/GC.Infrastructure/Notebooks/Examples/GCAnalysisExamples.ipynb index 101017c130..fa237be00b 100644 --- a/src/benchmarks/gc/GC.Infrastructure/Notebooks/Examples/GCAnalysisExamples.ipynb +++ b/src/benchmarks/gc/GC.Infrastructure/Notebooks/Examples/GCAnalysisExamples.ipynb @@ -10,7 +10,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -19,17 +19,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "data": { - "text/html": [ - "
Installed Packages
  • Microsoft.Data.Analysis, 0.20.1
  • Microsoft.Diagnostics.Tracing.TraceEvent, 3.1.6
  • Newtonsoft.Json, 13.0.3
  • XPlot.Plotly, 4.0.6
  • XPlot.Plotly.Interactive, 4.0.7
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "#r \"nuget: Microsoft.Diagnostics.Tracing.TraceEvent, 3.1.9\"\n", "#r \"nuget: XPlot.Plotly\"\n", @@ -59,7 +49,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "pwsh" @@ -68,31 +58,14 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "MSBuild version 17.8.0+6cdef4241 for .NET\n", - " Determining projects to restore...\n", - " All projects are up-to-date for restore.\n", - " GC.Analysis.API -> C:\\temp\\InstructionsForCTI\\performance\\artifacts\\bin\\GC.Analysis.API\\Release\\net7.0\\GC.Analysis.API.dll\n", - "\n", - "Build succeeded.\n", - " 0 Warning(s)\n", - " 0 Error(s)\n", - "\n", - "Time Elapsed 00:00:00.81\n" - ] - } - ], + "outputs": [], "source": [ "dotnet build -c Release \"..\\..\\GC.Analysis.API\"" ] }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -101,17 +74,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0006: Metadata file ' C:\\performance\\artifacts\\bin\\GC.Analysis.API\\Release\\net6.0\\GC.Analysis.API.dll' could not be found\r\n(3,7): error CS0246: The type or namespace name 'GC' could not be found (are you missing a using directive or an assembly reference?)", - "output_type": "error", - "traceback": [ - "(1,1): error CS0006: Metadata file ' C:\\performance\\artifacts\\bin\\GC.Analysis.API\\Release\\net6.0\\GC.Analysis.API.dll' could not be found\r\n", - "(3,7): error CS0246: The type or namespace name 'GC' could not be found (are you missing a using directive or an assembly reference?)" - ] - } - ], + "outputs": [], "source": [ "#r \"C:\\performance\\artifacts\\bin\\GC.Analysis.API\\Release\\net7.0\\GC.Analysis.API.dll\" \n", "\n", @@ -128,7 +91,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -153,7 +116,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -162,17 +125,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,20): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,44): error CS0103: The name 'AnalyzerManager' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,20): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,44): error CS0103: The name 'AnalyzerManager' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "Dictionary gcTraceData = AnalyzerManager.GetAnalyzer(tracePaths: new[] { TRACE_PATH });" ] @@ -187,7 +140,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -196,17 +149,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,20): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,44): error CS0103: The name 'AnalyzerManager' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,20): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,44): error CS0103: The name 'AnalyzerManager' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "Dictionary gcTraceData = AnalyzerManager.GetAllAnalyzers(BASE_PATH);" ] @@ -229,7 +172,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -238,17 +181,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,28): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)", - "output_type": "error", - "traceback": [ - "(1,1): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,28): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)" - ] - } - ], + "outputs": [], "source": [ "Analyzer gcTraceData = new Analyzer(tracePath: TRACE_PATH);" ] @@ -263,7 +196,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -272,17 +205,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,28): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)", - "output_type": "error", - "traceback": [ - "(1,1): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,28): error CS0246: The type or namespace name 'Analyzer' could not be found (are you missing a using directive or an assembly reference?)" - ] - } - ], + "outputs": [], "source": [ "Analyzer gcTraceData = new Analyzer(tracePath: TRACE_PATH, processNames: new HashSet { \"devenv\" });" ] @@ -297,7 +220,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -306,16 +229,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0103: The name 'gcTraceData' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,1): error CS0103: The name 'gcTraceData' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "gcTraceData.SummarizeTrace(processName: \"devenv\")" ] @@ -346,7 +260,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -355,16 +269,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0103: The name 'gcTraceData' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,1): error CS0103: The name 'gcTraceData' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "gcTraceData.Summarize(processName: \"devenv\")" ] @@ -379,7 +284,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -388,17 +293,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,6): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,34): error CS0103: The name 'gcTraceData' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,6): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,34): error CS0103: The name 'gcTraceData' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "List allDevenvs = gcTraceData.GetProcessGCData(\"devenv\");\n", "var data = allDevenvs[0].Compare(new [] { allDevenvs[1], allDevenvs[2] });\n", @@ -415,7 +310,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -424,16 +319,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0103: The name 'gcTraceData' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,1): error CS0103: The name 'gcTraceData' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "gcTraceData.Summarize(topN: 3, criteriaInGCStats: nameof(GCStats.MeanSizeAfterMB))" ] @@ -456,7 +342,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -465,18 +351,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,6): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n(2,1): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,39): error CS0103: The name 'gcTraceData' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,6): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(2,1): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,39): error CS0103: The name 'gcTraceData' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "List devenvChartData = gcTraceData.GetProcessGCData(processName: \"devenv\");\n", "GCProcessData devenvToInvestigate = devenvChartData[0];\n", @@ -493,7 +368,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -502,17 +377,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n(1,36): error CS0103: The name 'devenvTraceGCs' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n", - "(1,36): error CS0103: The name 'devenvTraceGCs' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "GCCharting.ChartGCData(gcs : devenvTraceGCs, \n", " title : \"Pause Duration (MSec)\", \n", @@ -530,7 +395,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -539,19 +404,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0246: The type or namespace name 'ChartInfo' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,27): error CS0246: The type or namespace name 'ChartInfo' could not be found (are you missing a using directive or an assembly reference?)\r\n(9,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n(9,36): error CS0103: The name 'devenvTraceGCs' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,1): error CS0246: The type or namespace name 'ChartInfo' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,27): error CS0246: The type or namespace name 'ChartInfo' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(9,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n", - "(9,36): error CS0103: The name 'devenvTraceGCs' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "ChartInfo chartInfo = new ChartInfo\n", "{\n", @@ -578,7 +431,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -587,18 +440,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n(1,37): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n(6,37): error CS0103: The name 'chartInfo' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n", - "(1,37): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n", - "(6,37): error CS0103: The name 'chartInfo' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "GCCharting.ChartGCData(gcs : devenvTraceGCs,\n", " title : \"Pause Durations and Suspend Durations\",\n", @@ -626,7 +468,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -635,19 +477,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(1,1): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n(1,42): error CS0103: The name 'devenvChartData' does not exist in the current context\r\n(7,71): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n(11,1): error CS0103: The name 'GCCharting' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(1,1): error CS0246: The type or namespace name 'GCProcessData' could not be found (are you missing a using directive or an assembly reference?)\r\n", - "(1,42): error CS0103: The name 'devenvChartData' does not exist in the current context\r\n", - "(7,71): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n", - "(11,1): error CS0103: The name 'GCCharting' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "GCProcessData otherDevenvToInvestigate = devenvChartData[1];\n", "List devenvTraceGCsOther = otherDevenvToInvestigate.GCs;\n", @@ -675,7 +505,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -684,18 +514,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(4,71): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n(5,71): error CS0103: The name 'allDevenvs' does not exist in the current context\r\n(8,1): error CS0103: The name 'GCCharting' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(4,71): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n", - "(5,71): error CS0103: The name 'allDevenvs' does not exist in the current context\r\n", - "(8,1): error CS0103: The name 'GCCharting' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "List<(string scatterName, List gcs)> gcData = \n", " new()\n", @@ -721,7 +540,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -730,17 +549,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(7,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n(7,36): error CS0103: The name 'devenvTraceGCs' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(7,1): error CS0103: The name 'GCCharting' does not exist in the current context\r\n", - "(7,36): error CS0103: The name 'devenvTraceGCs' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "IEnumerable<(string, Func)> filters = new (string, Func)[] \n", "{\n", @@ -764,7 +573,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -773,17 +582,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "ename": "Error", - "evalue": "(14,14): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n(21,1): error CS0103: The name 'GCCharting' does not exist in the current context", - "output_type": "error", - "traceback": [ - "(14,14): error CS0103: The name 'devenvTraceGCs' does not exist in the current context\r\n", - "(21,1): error CS0103: The name 'GCCharting' does not exist in the current context" - ] - } - ], + "outputs": [], "source": [ "class CustomType\n", "{\n", @@ -822,7 +621,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -831,24 +630,7 @@ "languageId": "polyglot-notebook" } }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Current Process ID: 13000\r\n" - ] - }, - { - "data": { - "text/html": [ - "

.NET Interactive

© 2020 Microsoft Corporation

Version: 1.0.425803+1db2979099d0272660e1497cae9b9af1238db42f

Library version: 1.0.0-beta.23258.3+1db2979099d0272660e1497cae9b9af1238db42f

Build date: 2023-05-19T04:42:05.2974204Z

https://github.com/dotnet/interactive

" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "Console.WriteLine($\"Current Process ID: {System.Diagnostics.Process.GetCurrentProcess().Id}\");\n", "\n",