Ensured correct display of performance marker times 28/69328/2
authorDavid Steele <david.steele@samsung.com>
Thu, 12 May 2016 13:50:02 +0000 (14:50 +0100)
committerDavid Steele <david.steele@samsung.com>
Thu, 12 May 2016 13:52:43 +0000 (14:52 +0100)
Float granularity is too low for performance markers - too many markers
were showing the same time. Upgraded it to a double - this allows the
multiplication to generate the right markers in the network client

Change-Id: I73a4eece36878c6d0cc5c5d320585dea28481ba9
Signed-off-by: David Steele <david.steele@samsung.com>
adaptors/base/performance-logging/networking/network-performance-client.cpp

index 7c9084885f849a261a954334d907cf09c4ff8ac0..5d2de3a9aa2c48085d1542154d5b1148ebab470b 100644 (file)
@@ -170,13 +170,14 @@ bool NetworkPerformanceClient::TransmitMarker( const PerformanceMarker& marker,
     // write out the time stamp
     char buffer[64];
     int size = snprintf( buffer, sizeof(buffer),"%.6f (seconds), %s\n",
-                                    (float)( marker.GetTimeStamp().microseconds * MICROSECONDS_TO_SECOND ),
-                                    description );
+                         ( (double) marker.GetTimeStamp().microseconds * MICROSECONDS_TO_SECOND ),
+                         description );
 
    return mSocket->Write( buffer, size );
 
   }
 
+
   // todo serialize the data
   return false;
 }