forked from goodboy/tractor
1
0
Fork 0
tractor/tractor/devx
Tyler Goodlet 5439060cd3 Start a `devx._code` mod
Starting with a little sub-sys for tracing caller frames by marking them
with a dunder var (`__runtimeframe__` by default) and then scanning for
that frame such that code that is *calling* our APIs can be reported
easily in logging / tracing output.

New APIs:
- `find_caller_info()` which does the scan and delivers a,
- `CallerInfo` which (attempts) to expose both the runtime frame-info
  and frame of the caller func along with `NamespacePath` properties.

Probably going to re-implement the dunder var bit as a decorator later
so we can bind in the literal func-object ref instead of trying to look
it up with `get_class_from_frame()`, since it's kinda hacky/non-general
and def doesn't work for closure funcs..
2024-04-18 15:12:32 -04:00
..
__init__.py First draft, sub-msg-spec for debugger `Lock` sys 2024-04-16 13:25:19 -04:00
_code.py Start a `devx._code` mod 2024-04-18 15:12:32 -04:00
_debug.py Use `DebugStatus` around subactor lock requests 2024-04-18 13:53:08 -04:00
_stackscope.py Relay `SIGUSR1` to subactors for `stackscope` tracing 2024-04-14 19:52:44 -04:00
cli.py Mk debugger tests work for arbitrary pre-REPL format 2024-03-05 12:22:04 -05:00