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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits