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:
Fletcher Dunn
2021-05-28 17:25:17 -07:00
parent c048e5fabf
commit 48cb63e956
@@ -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 );
}