Skip to content

Commit

Permalink
Import monotonic_ms directly into ddtrace/debugging/_debugger.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor-de-araujo committed Sep 30, 2024
1 parent 7baae74 commit 6ee1543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddtrace/debugging/_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path
import sys
import threading
import time
from time import monotonic_ns
from types import FunctionType
from types import ModuleType
from types import TracebackType
Expand Down Expand Up @@ -229,11 +229,11 @@ def _open_contexts(self) -> None:
contexts.append(self._collector.attach(signal))

# Save state on the wrapping context
self.set("start_time", time.monotonic_ns())
self.set("start_time", monotonic_ns())
self.set("contexts", contexts)

def _close_contexts(self, retval=None, exc_info=(None, None, None)) -> None:
end_time = time.monotonic_ns()
end_time = monotonic_ns()
contexts = self.get("contexts")
while contexts:
# Open probe signal contexts are ordered, with those that have
Expand Down

0 comments on commit 6ee1543

Please sign in to comment.