diff --git a/capara/profiler.py b/capara/profiler.py index f8517c2..24672f5 100644 --- a/capara/profiler.py +++ b/capara/profiler.py @@ -12,6 +12,7 @@ class ProfilerEntry(NamedTuple): file_name: str func_name: str + # Duration in nanoseconds. duration: Optional[int] call_index: int diff --git a/src/lib.rs b/src/lib.rs index 2e4bf46..30d8114 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -149,7 +149,6 @@ fn get_context(py: Python, obj: *mut pyo3::ffi::PyObject) -> Option return None, }; } - let context = unsafe { Py::from_owned_ptr_or_opt(py, context_obj)? }; if context.is_none(py) { None @@ -242,7 +241,6 @@ fn start(context_var: &PyAny) -> PyResult<()> { } #[pymodule] -/// A Python module implemented in Rust. fn capara(_py: Python, m: &PyModule) -> PyResult<()> { m.add_function(wrap_pyfunction!(start, m)?)?; m.add_class::()?;