mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-17 22:34:25 +01:00
runtime: add pprof interface for shim
Add new http interfaces to support pprof: - /sandboxes - /debug/vars - /debug/pprof/ - /debug/pprof/cmdline - /debug/pprof/profile - /debug/pprof/symbol - /debug/pprof/trace Fixes: #397 Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
@@ -34,6 +34,7 @@ var (
|
||||
netmonDebug = false
|
||||
agentDebug = false
|
||||
agentTrace = false
|
||||
enablePprof = true
|
||||
)
|
||||
|
||||
type testRuntimeConfig struct {
|
||||
@@ -115,6 +116,7 @@ func createAllRuntimeConfigFiles(dir, hypervisor string) (config testRuntimeConf
|
||||
AgentTrace: agentTrace,
|
||||
SharedFS: sharedFS,
|
||||
VirtioFSDaemon: virtioFSdaemon,
|
||||
EnablePprof: enablePprof,
|
||||
}
|
||||
|
||||
runtimeConfigFileData := ktu.MakeRuntimeConfigFileData(configFileOptions)
|
||||
@@ -197,6 +199,7 @@ func createAllRuntimeConfigFiles(dir, hypervisor string) (config testRuntimeConf
|
||||
|
||||
NetmonConfig: netmonConfig,
|
||||
DisableNewNetNs: disableNewNetNs,
|
||||
EnablePprof: enablePprof,
|
||||
|
||||
FactoryConfig: factoryConfig,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user