diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-05-10 21:00:45 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-05-10 21:00:45 +0300 |
commit | 3a0c1c8333382ff8402b05ce47d17f100187df6f (patch) | |
tree | 1662f9a268241d1dd6faf3c7b3a8a008455e96b2 /src/bp_sim.cpp | |
parent | 2d37b9f98020a4458aaad1f3fd05ca5e408213e0 (diff) |
cpu% without tsc
Diffstat (limited to 'src/bp_sim.cpp')
-rwxr-xr-x | src/bp_sim.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp index f9cb3220..ccd62f0e 100755 --- a/src/bp_sim.cpp +++ b/src/bp_sim.cpp @@ -3727,6 +3727,9 @@ inline int CNodeGenerator::teardown(CFlowGenListPerThread * thread, bool always, double &old_offset, double offset){ + + thread->m_cpu_dp_u.commit1(); + /* to do */ if ( thread->is_terminated_by_master() ) { return (0); @@ -4511,7 +4514,7 @@ double CFlowGenList::GetCpuUtil(){ } -void CFlowGenList::Update(){ +void CFlowGenList::UpdateFast(){ int i; for (i=0; i<(int)m_threads_info.size(); i++) { |