Skip to content

Instantly share code, notes, and snippets.

@43jay
43jay / threadname_extraction.sh
Created April 30, 2026 20:17
Simulating ProcessSnapshot for extracting Thread names
# === ProcessSnapshot simulation — paste sections from inside run-as ===
# Java code will read /proc/self/* directly. From this shell, /proc/self refers
# to the run-as shell, not the app, so we look up the app's pid and use its
# /proc/<pid>/* tree — same files, different path.
PKG=io.sentry.samples.android
SNAP1=./snap-start.tsv
SNAP2=./snap-end.tsv
UNION=./snap-union.tsv
{
"type": "replay_event",
"replay_type": "session",
"segment_id": 4,
"timestamp": "2025-10-09T20:33:13.028Z",
"replay_id": "a54a50c783174c12bf92efccd53d5ab5",
"replay_start_timestamp": "2025-10-09T20:33:08.028Z",
"urls": [
"TriggerHttpRequestActivity"
],
{
"segment_id": 4,
"events": [
{
"type": 4,
"timestamp": 1760041988028,
"data": {
"href": "",
"height": 800,
"width": 416