2 ms·
Are there ways to do this? It sounds like an application restart would be warranted at the very least, which can be disruptive.
by pm90 5y ago
Are there ways to do this? It sounds like an application restart would be warranted at the very least, which can be disruptive.
- masklinn 5y ago> Are there ways to do this? In some systems / runtimes, yes. For instance every browser supports "logging breakpoints" which can be added and removed on the fly (create a breakpoint then right click, you should get an option or sub-option about logging). I would also expect that there's Java instrumentation things which do it, though I haven't done any java for a very long time. It's pretty rare though, obviously so for runtime-less programs, somewhat less so for those with a runtime but while "external" profiling is common logging is much less so (e.g. Python supports updating the configuration of the existing static logging system on the fly, but not defining the log points). > It sounds like an application restart would be warranted at the very least, which can be disruptive. See above, if you can profile an application on the fly without restarting it you should be able to instrument for logging. And tools like dtrace/ebpf should allow this, but I've yet to take the plunge and actually try and look at that, it's only been an idle thought so far.