aboutsummaryrefslogtreecommitdiffstats
path: root/experiments/call_census.py
diff options
context:
space:
mode:
authorblasty <peter@haxx.in>2026-08-21 12:09:12 +0200
committerblasty <peter@haxx.in>2026-08-21 12:09:21 +0200
commit9541043c9dee7973c140159b3af561c6d0405e9e (patch)
tree1395ffadb7dd44b4b2acc3b1f2348fa367667dc8 /experiments/call_census.py
parentsplash: give the logo a placement id so re-anchoring replaces, not stacks (diff)
parentSwitch to ida-nexus (diff)
downloadida-tui-9541043c9dee7973c140159b3af561c6d0405e9e.tar.gz
ida-tui-9541043c9dee7973c140159b3af561c6d0405e9e.tar.xz
ida-tui-9541043c9dee7973c140159b3af561c6d0405e9e.zip
Merge PR #1 from mrexodia: Windows support and auto-refresh on events
https://github.com/blasty/ida-tui/pull/1 — from the ida-nexus (né ida-codemode) maintainer: kitty-graphics fallback for platforms without termios, Ctrl+R view refresh, typed remote operations through ida_nexus RemoteModule, live auto-refresh from other clients' IDB events (upstream item 7), discard-without-save (item 6), and the ida-nexus 0.7.0 rename. tests/test_kittygfx.py is the union of both sides' files: our escape- construction checks plus the PR's cross-platform fallback checks.
Diffstat (limited to 'experiments/call_census.py')
-rw-r--r--experiments/call_census.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/experiments/call_census.py b/experiments/call_census.py
index 1680691..17a5f94 100644
--- a/experiments/call_census.py
+++ b/experiments/call_census.py
@@ -1,7 +1,7 @@
"""Count backend round-trips per user action.
Answers "are we batching, or paying a round-trip per item?" with numbers rather
-than intent. Wraps ``CodeModeClient.invoke`` on the live app, drives a headless
+than intent. Wraps ``NexusClient.invoke`` on the live app, drives a headless
Pilot through realistic actions, and reports calls + wall time + which
operations were used for each.
@@ -25,7 +25,7 @@ from _fixtures import fast_keys, staged # noqa: E402
fast_keys()
from idatui.app import IdaTui, ListingView # noqa: E402
-from idatui.codemode_client import CodeModeClient # noqa: E402
+from idatui.nexus_client import NexusClient # noqa: E402
class Census:
@@ -34,18 +34,18 @@ class Census:
def __init__(self) -> None:
self.ops: collections.Counter = collections.Counter()
self.n = 0
- original = CodeModeClient.invoke
+ original = NexusClient.invoke
def counting(client, operation, *a, **kw):
self.n += 1
self.ops[operation] += 1
return original(client, operation, *a, **kw)
- CodeModeClient.invoke = counting
+ NexusClient.invoke = counting
self._original = original
def restore(self) -> None:
- CodeModeClient.invoke = self._original
+ NexusClient.invoke = self._original
def span(self, label: str):
return _Span(self, label)