Skip to content

Commit

Permalink
Print seq id only when non zero
Browse files Browse the repository at this point in the history
  • Loading branch information
debermudez committed Aug 3, 2023
1 parent 95c508a commit b3729e8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/c++/perf_analyzer/raw_data_reporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ RawDataReporter::AddRequests(
for (auto& raw_request : raw_experiment.requests) {
Value request(kObjectType);
Value timestamp;
Value sequence_id;

timestamp.SetUint64(raw_request.start_time_.time_since_epoch().count());
sequence_id.SetUint64(raw_request.sequence_id_);
request.AddMember("timestamp", timestamp, document_.GetAllocator());
request.AddMember("sequence_id", sequence_id, document_.GetAllocator());

if (raw_request.sequence_id_ != 0) {
Value sequence_id;
sequence_id.SetUint64(raw_request.sequence_id_);
request.AddMember("sequence_id", sequence_id, document_.GetAllocator());
}

Value responses(kArrayType);
AddResponses(responses, raw_request.response_times_);
request.AddMember(
Expand Down

0 comments on commit b3729e8

Please sign in to comment.