MCPcopy Create free account

hub / github.com/Da1sypetals/SnapViewer / functions

Functions98 in github.com/Da1sypetals/SnapViewer

↓ 6 callersMethodclose
Handle window close event
gui.py:645
↓ 6 callersMethodscale
(&self)
src/window_transform.rs:50
↓ 5 callersFunctionget_spinner
(message: &str)
src/utils.rs:39
↓ 4 callersMethodenforce_boundaries
actions
src/window_transform.rs:112
↓ 4 callersMethodtranslate
(&mut self, dir: TranslateDir)
src/window_transform.rs:147
↓ 4 callersMethodtranslate_step
(&self)
src/window_transform.rs:54
↓ 3 callersMethod__init__
(self, parent, args, palette: ColorPalette)
gui.py:314
↓ 3 callersFunctionadvance
Advance the timeline by `n` steps, tracking summary usage.
convert_snap.py:112
↓ 3 callersMethodconnect
Connect to the renderer's REP socket
gui.py:134
↓ 3 callersMethodexecute
(&self, command: &str)
src/database/sqlite.rs:36
↓ 3 callersFunctiongenerate_ticks
(low_bytes: i64, high_bytes: i64)
src/ticks.rs:145
↓ 3 callersMethodscreen2world_physical
Convert physical pixel mouse coordinates to logical pixel world coordinates Mouse events from three_d are in physical pixels, but our world is in logi
src/window_transform.rs:96
↓ 2 callersFunction_replace_scrollbar
Replace the tk.Scrollbar inside a ScrolledText with a ttk.Scrollbar. macOS native rendering ignores color options on tk.Scrollbar, so we swap
gui.py:153
↓ 2 callersFunctionconvert_pickle_to_dir
Process a pickle file and write allocations.json + elements.db to output_dir. output_dir must already exist.
convert_snap.py:271
↓ 2 callersFunctionfrom_allocations
( allocations: impl ExactSizeIterator<Item = &'a AllocationGeometry>, // required for progress bar )
src/render_data.rs:7
↓ 2 callersFunctionfrom_allocations_with_z
( alloc_zip_colors: impl Iterator<Item = (&'a AllocationGeometry, Srgba)>, z: f64, )
src/render_data.rs:34
↓ 2 callersMethodis_alive_at
(&self, timestamp: u64)
src/allocation.rs:44
↓ 2 callersMethodmaterial
(&self)
src/render_loop.rs:79
↓ 2 callersFunctionmemory_ticks
(a, b, min_ticks=8)
notes/ticks.py:39
↓ 2 callersMethodrun
Start the GUI event loop
gui.py:660
↓ 2 callersFunctionterminate
Terminate the application
gui.py:665
↓ 2 callersMethodtick
(&mut self)
src/render_loop.rs:20
↓ 2 callersMethodupdate_color
(&mut self)
src/render_loop.rs:63
↓ 2 callersMethodupdate_content
Update the message content
gui.py:265
↓ 2 callersMethodupdate_output
Update the output display
gui.py:482
↓ 2 callersMethodupdate_zoom
(&mut self, new_zoom: f32, screen_pos: (f32, f32))
src/window_transform.rs:119
↓ 2 callersMethodyworld2memory
y_world: y position (world coords) Allow negative memory
src/geometry.rs:132
↓ 1 callersMethodcamera
(&self, viewport: Viewport)
src/window_transform.rs:66
↓ 1 callersFunctionchoose_interval
(a, b, min_ticks)
notes/ticks.py:14
↓ 1 callersFunctionchoose_interval
(a: f64, b: f64, min_ticks: usize)
src/ticks.rs:100
↓ 1 callersFunctioncli
Command-line interface to process a snapshot and write allocations.json + elements.db to a directory.
convert_snap.py:293
↓ 1 callersFunctioncompute_file_hash
(path: str)
gui.py:37
↓ 1 callersMethodexecute_sql
Send SQL command and receive response
gui.py:139
↓ 1 callersMethodfind_by_pos
return index of allocation FIXME: this is a fucking naive implementation
src/geometry.rs:87
↓ 1 callersFunctionformat_callstack
(frames: list)
convert_snap.py:48
↓ 1 callersMethodgenerate_memory_ticks
( &self, low_bytes: i64, high_bytes: i64, scale: f32, screen_center_wo
src/ticks.rs:31
↓ 1 callersMethodgenerate_text_mesh
y is 0~1, 0 for left-bottom, 1 for left-top. scale: reciprocal of zoom
src/ticks.rs:57
↓ 1 callersFunctiongenerate_ticks
(a, b, interval)
notes/ticks.py:25
↓ 1 callersFunctiongenerate_ticks_f64
(a: f64, b: f64, interval: f64)
src/ticks.rs:126
↓ 1 callersFunctionget_intervals
()
notes/ticks.py:10
↓ 1 callersFunctionget_or_create_cache
(pickle_path: str, device_id: int)
gui.py:44
↓ 1 callersFunctionget_trace
Retrieve the trace for a specific device from the snapshot dump. Args: dump (dict): Parsed snapshot data. device_id (int): I
convert_snap.py:195
↓ 1 callersFunctionhandle_sql_command
(db_ptr: u64, command: &str)
src/main.rs:359
↓ 1 callersFunctioninsert_data
(idx, alloc, elem)
convert_snap.py:246
↓ 1 callersFunctionmain
()
gui.py:753
↓ 1 callersFunctionmake_db
Create an SQLite database at db_path. Args: allocs (list): List of allocation data elems (list): List of element data
convert_snap.py:227
↓ 1 callersMethodnum_steps
(&self)
src/geometry.rs:14
↓ 1 callersFunctionprocess_alloc_data
Processes the device trace into a structured format showing allocations over time. Args: device_trace (list): List of memory events.
convert_snap.py:56
↓ 1 callersFunctionread_allocations
Reads from dir.join(allocations.json) and deserialize ## Returns An atomic refcounted pointer to allocation slice. Executed at start
src/load.rs:17
↓ 1 callersMethodreset
(&mut self, target_color: Srgba)
src/render_loop.rs:57
↓ 1 callersMethodrow_count
(&self)
src/database/sqlite.rs:28
↓ 1 callersFunctionrun_gui
Run the GUI application
gui.py:738
↓ 1 callersFunctionrun_render_loop
( state: RendererState, mut rl: RenderLoop, cpu_mesh: CpuMesh, )
src/main.rs:140
↓ 1 callersMethodscreen2world
(&self, cursor_pos_px: (f32, f32))
src/window_transform.rs:81
↓ 1 callersMethodset_zoom_limits
(&mut self, low: f32, high: f32)
src/window_transform.rs:39
↓ 1 callersMethodsetup_ui
Setup the UI components
gui.py:177
↓ 1 callersMethodsetup_ui
Setup the UI components
gui.py:321
↓ 1 callersMethodsetup_ui
Setup the main UI
gui.py:514
↓ 1 callersMethodshow_alloc
(&mut self, context: &Context, idx: usize)
src/render_loop.rs:116
↓ 1 callersFunctionspawn_renderer
Spawn the renderer process
gui.py:681
↓ 1 callersMethodstart_receiver
Start the ZeroMQ receiver thread
gui.py:509
↓ 1 callersMethodstop
Stop the receiver thread
gui.py:117
↓ 1 callersFunctiontrace_to_allocation_data
Convert device trace into allocation timeline and elements. Args: device_trace (list): A list of memory allocation/free events for a
convert_snap.py:32
↓ 1 callersMethodybot_world
(&self)
src/window_transform.rs:62
↓ 1 callersMethodytop_world
(&self)
src/window_transform.rs:58
↓ 1 callersMethodzoom_in
(&mut self, screen_pos: (f32, f32))
src/window_transform.rs:131
↓ 1 callersMethodzoom_out
(&mut self, screen_pos: (f32, f32))
src/window_transform.rs:139
Method__init__
(self, host, port, app)
gui.py:88
Method__init__
(self, host, port)
gui.py:128
Method__init__
(self, parent, palette: ColorPalette)
gui.py:171
Method__init__
(self, parent, **kwargs)
gui.py:280
Method__init__
(self, args, sql_client, palette: ColorPalette = CUTE)
gui.py:500
Method_toggle_repl
(self)
gui.py:633
Methodallocation_info
(&self, db_ptr: u64, idx: usize)
src/render_loop.rs:133
Methodclose
Close the connection
gui.py:146
Methodfmt
(&self, f: &mut Formatter<'_>)
src/allocation.rs:16
Functionformat_bytes
(bytes: i64)
src/utils.rs:10
Functionformat_bytes_precision
Rust has no default parameter value ...
src/utils.rs:25
Functionformat_frame
(iframe: tuple[int, dict])
convert_snap.py:49
Functionformat_size
(num)
notes/ticks.py:1
Methodfrom_allocations
Executed at start
src/geometry.rs:37
Methodfrom_dir
(dir: &Path)
src/database/sqlite.rs:14
Methodinitialize
Executed at start
src/render_loop.rs:94
Methodis_alive_in_interval
(&self, start: u64, stop: u64)
src/allocation.rs:40
Methodjbmono
(resolution: (u32, u32), fontsize_px: f32)
src/ticks.rs:16
Functionmain
()
src/main.rs:57
Functionmemory_usage
()
src/utils.rs:6
Methodnew
(resolution: (u32, u32), resolution_ratio: f64)
src/window_transform.rs:22
Methodnew
()
src/render_loop.rs:14
Methodon_down_arrow
(self, event)
gui.py:293
Methodon_submit
Handle command submission
gui.py:428
Methodon_up_arrow
(self, event)
gui.py:287
Functionpositive_int
(value)
gui.py:758
Methodrun
Receive messages and update GUI thread-safely
gui.py:98
Methodstart_end_time
(&self)
src/allocation.rs:48
Functiontest_ticks
()
src/ticks.rs:161
Methodupdate_message
Update the message panel content
gui.py:629
Methodxworld2timestamp
x_world: x position (world timestamp) Allow negative time
src/geometry.rs:138