zlacker

[return to "Computers should expose their internal workings as a 6th sense"]
1. Boppre+nx4[view] [source] 2021-08-29 15:27:36
>>tobr+(OP)
I miss being able to know if my program is frozen because of CPU (fan noises), disk access (HDD noises), or network (silence).

I've thought of "reimplementing" that for troubleshooting my own projects. Imagine `clang --sounds`, so that it makes a sounds when

- Accessing disk.

- Sending something on the network.

- Allocating large buffers.

- Waiting for locks.

Or, alternatively, there's a constant background sound that is modulated on every function call depending on

- Call stack depth.

- If it's my code, library, or syscall.

- How long the last call took.

- Or just a unique modulation for each major function.

I think that's a nice, easy, and useful step before the more advanced applications mentioned in TFA.

◧◩
2. boston+3P4[view] [source] 2021-08-29 17:18:14
>>Boppre+nx4
Brendan Gregg did something similar for wifi signal strength with bpf.

https://www.brendangregg.com/blog/2019-12-22/bpf-theremin.ht...

[go to top]