17 ms·
> Printing /proc/$pid/smaps is not on any conceivable performance-critical hot path. I disagree, for profiling memory usage it's useful to get memory map data
by nix0n 4y ago
> Printing /proc/$pid/smaps is not on any conceivable performance-critical hot path.
I disagree, for profiling memory usage it's useful to get memory map data multiple times per second.
- jeffbee 4y agoIf you think smaps is performance-critical that raises of the question of its ridiculous textual format. Clearly, it would be vastly more efficient to pass the information as a protobuf or whatever. Believe me, as the person who had to refactor the smaps-reading library on cost/efficiency grounds at Google, this issue is nearer and dearer to me than to probably anyone else.
- roguebantha 4y agoThe irony isn't lost on me that the one conceivable hotpath is this exploit technique...