util: add computeTime option to inspect
This adds a limit to the maximum computation time while using
util.inspect()
. That makes sure the event loop is not blocked for
to long even though still having a good output in pretty much all
cases.
Fixes: #19405 (closed)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines