[Lldb-commits] [lldb] adds additional information to the ProcessInfo object for elf processes (PR #88995)
Fred Grim via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 17 08:41:10 PDT 2024
feg208 wrote:
> The user and system times should be monotonically increasing. So you could stop at a breakpoint, fetch the times, then run your program through a little spin loop to burn some CPU before hitting a second breakpoint. Then get the times again and assert that they are > the first set. You could also set a timer in the test between the first and second stop and assert that the difference in system and user time is less than or equal to the timer difference. A single threaded program can only run on one core at a time, so that should always be true.
Ok let me add a test along these lines. I'll run the test a bunch locally and in this pr to make sure I don't make a mess
https://github.com/llvm/llvm-project/pull/88995
More information about the lldb-commits
mailing list