Coder Social home page Coder Social logo

juniordevbot's Introduction

Hi there, I'm Spandan ๐Ÿ‘‹

๐Ÿ˜„ A bit about me:

  • ๐Ÿ“Š Iโ€™m currently a Data Scientist II at Microsoft (2020 - Present), working on building AI-powered Software Performance tools for C# and .NET applications.
  • ๐ŸŽ“ I recently completed my undergrad in Software Engineering at the University of Waterloo (2015 - 2020).
  • ๐ŸŽจ Outside of work, I enjoy sketching, running and a few racket sports like Table Tennis and Badminton.
  • โšก Fun fact: Prior to Data Science, I worked in Game Development. Thanks to that, I have my very own IMDb page from my work on Luigi's Mansion 3 as an intern at Nintendo (Next Level Games, Inc.).
  • ๐Ÿ’ฌ Feel free to reach me at: spandan.garg1706[at]gmail.com

Please visit my website to learn more about my current and past research projects and publications!

juniordevbot's People

Contributors

glgarg avatar jkalis-ms avatar

Watchers

 avatar

juniordevbot's Issues

PERF: Issue for Memory (A lot of CPU or Memory is being spent in `IEnumerable<T>.ToL...)

Description: A lot of CPU or Memory is being spent in System.String.Replace.

Current condition: 97% of your Memory was spent in System.String.Replace called from Microsoft.Outlook.Services.Tracing.Scrubber.ScrubData. We expected this value to be <13%.

Call Stack:

Type System.String[]
system.private.corelib.il!System.Collections.Generic.List1[System.__Canon].set_Capacity(int32) system.private.corelib.il!System.Collections.Generic.List1[System.__Canon].AddWithResize(!0)
system.linq.il!System.Linq.Enumerable+WhereSelectEnumerableIterator2[System.__Canon,System.__Canon].ToList() system.linq.il!System.Linq.Enumerable.ToList(class System.Collections.Generic.IEnumerable1<!!0>)
webapp!eShop.WebApp.Services.Scrubber.SanitizeData(class System.String,wchar,class System.Globalization.CultureInfo)
webapp!eShop.WebApp.Services.BackgroundScrubber+d__0.MoveNext()
system.private.corelib.il!System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1[System.Threading.Tasks.VoidTaskResult,eSho

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 83% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <25%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 83% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <25%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: Excessive `String.SubString()` is causing lots of allocation...

Description: Excessive String.SubString() is causing lots of allocations and CPU consumption.

Current condition: 69% of your Memory was spent in String.InternalSubString called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as String.AsSpan().

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: `String.Substring` is causing unusually high memory allocation

Description: String.Substring is causing unusually high memory allocations.

Current condition: 53% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <19%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <20%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 53% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <19%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 53% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <19%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <20%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: Excessive `String.SubString()` is causing lots of allocation...

Description: Excessive String.SubString() is causing lots of allocations and CPU consumption.

Current condition: 69% of your Memory was spent in String.InternalSubString called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as String.AsSpan().

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (Excessive string concatenation is causing lots of allocation...)

Description: Excessive string concatenation is causing lots of allocations and CPU consumption.

Current condition: 12% of your Memory was spent in String.Concat called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as String.Join or a StringBuilder instead.

Call Stack:

Type System.String
mscorlib.ni!System.String.Concat(System.String, System.String)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringConcat(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 53% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <19%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <24%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Expensive String.Replace in Scrubber.ScrubData

Description: Excessive System.String!Replace is causing lots of allocations and CPU consumption.

Current condition: 43% of your Memory was spent in System.String!Replace called from Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as System.String!Replace.

Call Stack:

System.String!Replace
System.String!Replace
Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData
Microsoft.Outlook.Services.Tracing.LocalLoggingTelemetryListener!LogLocalTelemetry
Microsoft.Sara.Services.Telemetry.Controllers.LogController+<>c__DisplayClass12_0!b__0
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <20%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 66% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <20%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Expensive String.Replace in Scrubber.ScrubData

Description: Excessive System.String!Replace is causing lots of allocations and CPU consumption.

Current condition: 43% of your Memory was spent in System.String!Replace called from Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as System.String!Replace.

Call Stack:

System.String!Replace
System.String!Replace
Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData
Microsoft.Outlook.Services.Tracing.LocalLoggingTelemetryListener!LogLocalTelemetry
Microsoft.Sara.Services.Telemetry.Controllers.LogController+<>c__DisplayClass12_0!b__0
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 83% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <25%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Expensive `String.Replace` in `Scrubber.ScrubData`

{
"call_stack": "System.String!Replace\nSystem.String!Replace\nMicrosoft.Outlook.Services.Tracing.Scrubber!ScrubData\nMicrosoft.Outlook.Services.Tracing.LocalLoggingTelemetryListener!LogLocalTelemetry\nMicrosoft.Sara.Services.Telemetry.Controllers.LogController+<>c__DisplayClass12_0!b__0\nmscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A\nmscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A\nmscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A",
"parent_symbol": "Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData",
"bottleneck_symbol": "System.String!Replace",
"parent_function": "ScrubData",
"bottleneck_call": "Replace",
"repo_url": "https://github.com/glGarg/JuniorDevBot",
"buggy_file_path": "test/Nibiru/sources/dev/olksvcs/src/core/Tracing/Scrubber.cs",
"start_line_number": 17,
"inc_perc": 7,
"benchmark_inc_perc": 1
}

Issue for CPU (`Array.Sort` is causing unusually high CPU usage. in diagser...)

Description: Array.Sort is causing unusually high CPU usage.

Current condition: 10% of your CPU was spent in Array.Sort called from DiagService.Runners.ArrayOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider investigating why Array.Sort is causing higher than expected CPU usage.

NOTE: We are currently working on refining the detail...

Call Stack:

clr!ArrayHelpers::PickPivotAndPartition
clr!ArrayHelpers::IntroSort
clr!ArrayHelpers::IntroSort
clr!ArrayHelper::TrySZSort
mscorlib.ni!System.Array.Sort[System.Int32](Int32[], Int32, Int32, System.Collections.Generic.IComparer`1)
mscorlib.ni!System.Array.SortSystem.Int32
diagservice!DiagService.Runners.ArrayOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.PerfCPUController+<>c__DisplayClass12_0.b__0()
mscorlib.ni!System.Threading.Tasks.Task.Execute()
mscorlib.ni!System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
mscorlib.ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <20%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: Expensive String.Replace in Scrubber.ScrubData

Description: Excessive System.String!Replace is causing lots of allocations and CPU consumption.

Current condition: 43% of your Memory was spent in System.String!Replace called from Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as System.String!Replace.

Call Stack:

System.String!Replace
System.String!Replace
Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData
Microsoft.Outlook.Services.Tracing.LocalLoggingTelemetryListener!LogLocalTelemetry
Microsoft.Sara.Services.Telemetry.Controllers.LogController+<>c__DisplayClass12_0!b__0
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 83% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <25%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Expensive `String.Replace` in `Scrubber.ScrubData`

Description: Excessive System.String!Replace is causing lots of allocations and CPU consumption.

Current condition: 43% of your Memory was spent in System.String!Replace called from Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as System.String!Replace.

Call Stack:

System.String!Replace
System.String!Replace
Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData
Microsoft.Outlook.Services.Tracing.LocalLoggingTelemetryListener!LogLocalTelemetry
Microsoft.Sara.Services.Telemetry.Controllers.LogController+<>c__DisplayClass12_0!b__0
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A
mscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A

Perf: `String.Substring` is causing unusually high memory allocati...

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <24%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 83% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <25%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for CPU (`Array.Sort` is causing unusually high CPU usage. in diagser...)

Description: Array.Sort is causing unusually high CPU usage.

Current condition: 10% of your CPU was spent in Array.Sort called from DiagService.Runners.ArrayOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider investigating why Array.Sort is causing higher than expected CPU usage.

NOTE: We are currently working on refining the detail...

Call Stack:

clr!ArrayHelpers::PickPivotAndPartition
clr!ArrayHelpers::IntroSort
clr!ArrayHelpers::IntroSort
clr!ArrayHelper::TrySZSort
mscorlib.ni!System.Array.Sort[System.Int32](Int32[], Int32, Int32, System.Collections.Generic.IComparer`1)
mscorlib.ni!System.Array.SortSystem.Int32
diagservice!DiagService.Runners.ArrayOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.PerfCPUController+<>c__DisplayClass12_0.b__0()
mscorlib.ni!System.Threading.Tasks.Task.Execute()
mscorlib.ni!System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
mscorlib.ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 53% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <19%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (Excessive `String.SubString()` is causing lots of allocation...)

Description: Excessive String.SubString() is causing lots of allocations and CPU consumption.

Current condition: 83% of your Memory was spent in String.InternalSubString called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as String.AsSpan().

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (Excessive `String.SubString()` is causing lots of allocation...)

Description: Excessive String.SubString() is causing lots of allocations and CPU consumption.

Current condition: 83% of your Memory was spent in String.InternalSubString called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as String.AsSpan().

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: Expensive String.Replace in Scrubber.ScrubData

{
"call_stack": "System.String!Replace\nSystem.String!Replace\nMicrosoft.Outlook.Services.Tracing.Scrubber!ScrubData\nMicrosoft.Outlook.Services.Tracing.LocalLoggingTelemetryListener!LogLocalTelemetry\nMicrosoft.Sara.Services.Telemetry.Controllers.LogController+<>c__DisplayClass12_0!b__0\nmscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A\nmscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A\nmscorlib.ni.dll!System.Reflection.Assembly.get_GlobalAssemblyCache()$##600428A",
"parent_symbol": "Microsoft.Outlook.Services.Tracing.Scrubber!ScrubData",
"bottleneck_symbol": "System.String!Replace",
"parent_function": "ScrubData",
"bottleneck_call": "Replace",
"repo_url": "https://github.com/glGarg/JuniorDevBot",
"buggy_file_path": "test/Nibiru/sources/dev/olksvcs/src/core/Tracing/Scrubber.cs",
"start_line_number": 17,
"inc_perc": 7,
"benchmark_inc_perc": 1
}

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 83% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <25%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for CPU (`Array.Sort` is causing unusually high CPU usage. in diagser...)

Description: Array.Sort is causing unusually high CPU usage.

Current condition: 10% of your CPU was spent in Array.Sort called from DiagService.Runners.ArrayOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider investigating why Array.Sort is causing higher than expected CPU usage.

NOTE: We are currently working on refining the detail...

Call Stack:

clr!ArrayHelpers::PickPivotAndPartition
clr!ArrayHelpers::IntroSort
clr!ArrayHelpers::IntroSort
clr!ArrayHelper::TrySZSort
mscorlib.ni!System.Array.Sort[System.Int32](Int32[], Int32, Int32, System.Collections.Generic.IComparer`1)
mscorlib.ni!System.Array.SortSystem.Int32
diagservice!DiagService.Runners.ArrayOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.PerfCPUController+<>c__DisplayClass12_0.b__0()
mscorlib.ni!System.Threading.Tasks.Task.Execute()
mscorlib.ni!System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
mscorlib.ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

Issue for CPU (`Array.Sort` is causing unusually high CPU usage. in diagser...)

Description: Array.Sort is causing unusually high CPU usage.

Current condition: 10% of your CPU was spent in Array.Sort called from DiagService.Runners.ArrayOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider investigating why Array.Sort is causing higher than expected CPU usage.

NOTE: We are currently working on refining the detail...

Call Stack:

clr!ArrayHelpers::PickPivotAndPartition
clr!ArrayHelpers::IntroSort
clr!ArrayHelpers::IntroSort
clr!ArrayHelper::TrySZSort
mscorlib.ni!System.Array.Sort[System.Int32](Int32[], Int32, Int32, System.Collections.Generic.IComparer`1)
mscorlib.ni!System.Array.SortSystem.Int32
diagservice!DiagService.Runners.ArrayOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.PerfCPUController+<>c__DisplayClass12_0.b__0()
mscorlib.ni!System.Threading.Tasks.Task.Execute()
mscorlib.ni!System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
mscorlib.ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <24%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: `String.Substring` is causing unusually high memory allocati...

Description: String.Substring is causing unusually high memory allocations.

Current condition: 58% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <20%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: `String.Substring` is causing unusually high memory allocati...

Description: String.Substring is causing unusually high memory allocations.

Current condition: 83% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <25%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for Memory (`String.Substring` is causing unusually high memory allocati...)

Description: String.Substring is causing unusually high memory allocations.

Current condition: 51% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <24%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

PERF: `String.Substring` is causing unusually high memory allocati...

Description: String.Substring is causing unusually high memory allocations.

Current condition: 70% of your Memory was spent in String.Substring called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <24%.

Recommendations: Consider investigating why String.Substring is causing higher than expected memory allocations.

NOTE: We are currently working on re...

Call Stack:

Type System.String
mscorlib.ni!System.String.InternalSubString(Int32, Int32)
mscorlib.ni!System.String.Substring(Int32, Int32)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringSubstring(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Issue for CPU (Excessive string concatenation is causing lots of allocation...)

Description: Excessive string concatenation is causing lots of allocations and CPU consumption.

Current condition: 3% of your CPU was spent in String.Concat called from DiagService.Runners.StringOperationRunner.Run. We expected this value to be <1%.

Recommendations: Consider using cheaper alternatives such as String.Join or a StringBuilder instead.

Call Stack:

clr!WKS::gc_heap::allocate_large_object
clr!WKS::GCHeap::Alloc
clr!Alloc
clr!SlowAllocateString
clr!FramedAllocateString
mscorlib.ni!System.String.Concat(System.String, System.String)
diagservice!DiagService.Runners.StringOperationRunner.Run(int32,value class DiagService.OperationEnum)
diagservice!DiagService.Controllers.MemoryController.StringConcat(int32)
anonymously hosted dynamicmethods assembly!dynamicClass.lambda_method(pMT: 6FD30FF8,class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute(class System.Object,class System.Object[])
system.web.http!System.Web.Http.Controllers.ApiControllerActionInvoker+d__1.MoveNext()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.