From 596eaec7fa9678939031eb1a434735c51f3ecec2 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 28 Feb 2024 18:41:33 +0000 Subject: deploy: aee91960846cc5786b1ce0f87b107534440a8450 --- src/juicebox_asm/rt.rs.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/juicebox_asm/rt.rs.html b/src/juicebox_asm/rt.rs.html index d58d3e7..eecdd6f 100644 --- a/src/juicebox_asm/rt.rs.html +++ b/src/juicebox_asm/rt.rs.html @@ -259,6 +259,15 @@ 258 259 260 +261 +262 +263 +264 +265 +266 +267 +268 +269
//! Simple `mmap`ed runtime.
 //!
 //! This runtime supports adding code to executable pages and turn the added code into user
@@ -351,7 +360,16 @@
         }
     }
 
-    pub fn with_profile() -> Runtime {
+    /// Create a new [Runtime] which also generates static perf metat data.
+    ///
+    /// For each function added to the [Runtime], an entry will be generated in the
+    /// `/tmp/perf-<PID>.map` file, which `perf report` uses to symbolicate unknown addresses.
+    /// This is applicable for static runtimes only.
+    ///
+    /// # Panics
+    ///
+    /// Panics if the `mmap` call fails.
+    pub fn with_profile() -> Runtime {
         let mut rt = Runtime::new();
         rt.perf = Some(perf::PerfMap::new());
         rt
-- 
cgit v1.2.3