build: Add optional dhat heap profiling

Add new "dhat-heap" build feature which enables dhat heap profiling.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2023-01-17 12:53:55 +00:00
parent e2886a4b1f
commit 3a81f9328f
3 changed files with 204 additions and 60 deletions

View File

@@ -32,6 +32,7 @@ debug = true
anyhow = "1.0.68"
api_client = { path = "api_client" }
argh = "0.1.9"
dhat = { version = "0.3.2", optional = true }
epoll = "4.3.1"
event_monitor = { path = "event_monitor" }
hypervisor = { path = "hypervisor" }
@@ -63,6 +64,7 @@ wait-timeout = "0.2.0"
[features]
default = ["kvm"]
dhat-heap = ["dhat"] # For heap profiling
guest_debug = ["vmm/guest_debug"]
kvm = ["vmm/kvm"]
mshv = ["vmm/mshv"]