本机代码中的高 CPU 使用率

Bur*_*sys 5 profiling cpu-usage azure-webjobs

我有一个在队列触发器上运行的 .net C# Azure WebJob 项目,它执行并行后台处理,
我的 CPU 使用率过高。
我使用了 Resharper 的 Performance Profiler 和 CPU 消耗分解如下:

在此处输入图片说明

在此处输入图片说明

75% 的 CPU 时间在“没有解析函数的本机堆栈跟踪”中

不到 10% 的 CPU 时间在实际用户代码中。

我怎样才能找到高 CPU 消耗的真正原因?

Web 作业具有以下参数/设置:

QueueBatchSize = 8
NewBatchThreshold = 4
ServicePointManager.DefaultConnectionLimit = Int32.MaxValue
ThreadPool.SetMinThreads(250, 250)
Run Code Online (Sandbox Code Playgroud)

框架 4.7,所有 nuget 参考都使用最新版本。

任何想法如何诊断这个?