Gavin Han(deleted)
|
Re: to get cpu percentage for each threads, not process
|
Gavin Han(deleted)
11/02/2021 5:06 AM
post121652
|
Re: to get cpu percentage for each threads, not process
thank you very much. I got some idea what I should do. thanks.
|
|
|
zhao weikun(deleted)
|
Re: to get cpu percentage for each threads, not process
|
zhao weikun(deleted)
01/08/2024 5:28 AM
post122447
|
Re: to get cpu percentage for each threads, not process
Hi,there
I'm encountering an issue: at time t1, let t1_cpu = debug_thread_t.sutime, and at time t2, t2_cpu = debug_thread_t.
sutime, with t2 - t1 = 1 being a constant value. Simultaneously, Δt_cpu is also a stable value. However, when I invoke
settimeofday() to modify the system time, Δt_cpu immediately becomes a relatively small value. Could you please help me
with the following questions: 1) What is the relationship between debug_thread_t.sutime and the system time, and why is
it influenced by changes in the system time? 2) Are there any methods to obtain thread execution time that remains
unaffected by changes in the system time?
|
|
|