@@ -1033,26 +1033,23 @@ struct aws_future_http_message *s_s3_prepare_upload_part(struct aws_s3_request *
10331033 /* write every read metric to a file */
10341034 if (metrics_file ) {
10351035 // Write CSV header
1036- fprintf (metrics_file , "index,offset,size,start_timestamp,end_timestamp, duration_ns,throughput_mbps \n" );
1036+ fprintf (metrics_file , "index,offset,size,start_timestamp,duration_ns,threadid \n" );
10371037 // Write all metrics
10381038 for (size_t j = 0 ; j < metric_length ; j ++ ) {
10391039 struct s3_data_read_metrics m ;
10401040 aws_array_list_get_at (& meta_request -> read_metrics_list , & m , j );
10411041
10421042 uint64_t duration = m .end_timestamp - m .start_timestamp ;
1043- double throughput_mbps =
1044- duration > 0 ? (double )(m .size * 8 ) / (duration / 1000.0 ) / 1000000.0 : 0.0 ;
10451043
10461044 fprintf (
10471045 metrics_file ,
1048- "%zu,%llu,%llu,%llu,%llu,%llu,%.2f \n" ,
1046+ "%zu,%llu,%llu,%llu,%llu,%zu \n" ,
10491047 j ,
10501048 (unsigned long long )m .offset ,
10511049 (unsigned long long )m .size ,
10521050 (unsigned long long )m .start_timestamp ,
1053- (unsigned long long )m .end_timestamp ,
10541051 (unsigned long long )duration ,
1055- throughput_mbps );
1052+ ( size_t ) m . thread_id );
10561053 }
10571054 aws_array_list_clear (& meta_request -> read_metrics_list );
10581055 fclose (metrics_file );
0 commit comments