mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Tweak performance warning to give some more context
Maybe people will stop blaming my code for being slow, when actually it's just that I am the only one dumb enough to spew, "Hey stuff seems to be slow in general and it's causing my stuff to be slow". Oh, who am I kidding this will have no effect. P4:6571362
This commit is contained in:
@@ -325,7 +325,11 @@ void LockDebugInfo::AboutToUnlock()
|
||||
// Yelp if we held the lock for longer than the threshold.
|
||||
if ( usecElapsedTooLong != 0 )
|
||||
{
|
||||
SpewWarning( "SteamNetworkingSockets lock held for %.1fms. (Performance warning). %s", usecElapsedTooLong*1e-3, tags );
|
||||
SpewWarning(
|
||||
"SteamNetworkingSockets lock held for %.1fms. (Performance warning.) %s\n"
|
||||
"This is usually a symptom of a general performance problem such as thread starvation.",
|
||||
usecElapsedTooLong*1e-3, tags
|
||||
);
|
||||
ETW_LongOp( "lock held", usecElapsedTooLong, tags );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user