Skip to main content
Version: Next

DotNetStackActivity

Category: System Diagnostics Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain

Overview​

DotNetStackActivity (Stack Trace) is a node used to obtain thread stack traces in the process. It inherits from ActionActivity and uses the dotnet-stack tool to print the stack trace of each thread in the target process, used for diagnosing performance issues.

Configuration Description​

Property NameTypeRequiredDefaultDescription
OutputPathstringNologs/diagnosis_logsDiagnosis Output Path
PendingWorkItemThresholdCountint?No-Thread pool queue threshold, stack trace executes only when exceeded

Usage Examples​

{
"Type": "DotNetStackActivity",
"Name": "Stack Diagnosis",
"Alias": "StackDiagnosis",
"OutputPath": "C:\\Logs\\Diagnosis",
"PendingWorkItemThresholdCount": 200
}

Notes​

  • 💡 Executes asynchronously, does not block the process.
  • 💡 Setting a threshold can avoid frequent stack trace execution.
  • ⚠️ Requires dotnet-stack tool to be installed.
  • ⚠️ Stack tracing incurs some performance overhead.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28