mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Proper throughput calculation.
This commit is contained in:
parent
1dd723e3ed
commit
2789cc346f
@ -113,7 +113,7 @@ void View::Worker()
|
|||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock( m_mbpslock );
|
std::lock_guard<std::mutex> lock( m_mbpslock );
|
||||||
m_mbps.erase( m_mbps.begin() );
|
m_mbps.erase( m_mbps.begin() );
|
||||||
m_mbps.emplace_back( 8.f * MbpsUpdateTime * bytes / ( td * 1000 * 1000 ) );
|
m_mbps.emplace_back( bytes / ( td * 125.f ) );
|
||||||
t0 = t1;
|
t0 = t1;
|
||||||
bytes = 0;
|
bytes = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user