Skip to content

Commit

Permalink
change time unit
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyunyan committed Jan 16, 2023
1 parent 94638c7 commit 9e332ee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dbms/src/Storages/DeltaMerge/ScanContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class ScanContext
total_dmfile_skipped_packs = tiflash_scan_context_pb.total_dmfile_skipped_packs();
total_dmfile_scanned_rows = tiflash_scan_context_pb.total_dmfile_scanned_rows();
total_dmfile_skipped_rows = tiflash_scan_context_pb.total_dmfile_skipped_rows();
total_dmfile_rough_set_index_load_time_ns = tiflash_scan_context_pb.total_dmfile_rough_set_index_load_time_ns();
total_dmfile_read_time_ns = tiflash_scan_context_pb.total_dmfile_read_time_ns();
total_create_snapshot_time_ns = tiflash_scan_context_pb.total_create_snapshot_time_ns();
total_dmfile_rough_set_index_load_time_ns = tiflash_scan_context_pb.total_dmfile_rough_set_index_load_time_ms() * 1000000;
total_dmfile_read_time_ns = tiflash_scan_context_pb.total_dmfile_read_time_ms() * 1000000;
total_create_snapshot_time_ns = tiflash_scan_context_pb.total_create_snapshot_time_ms() * 1000000;
}

tipb::TiFlashScanContext serialize()
Expand All @@ -65,9 +65,9 @@ class ScanContext
tiflash_scan_context_pb.set_total_dmfile_skipped_packs(total_dmfile_skipped_packs);
tiflash_scan_context_pb.set_total_dmfile_scanned_rows(total_dmfile_scanned_rows);
tiflash_scan_context_pb.set_total_dmfile_skipped_rows(total_dmfile_skipped_rows);
tiflash_scan_context_pb.set_total_dmfile_rough_set_index_load_time_ns(total_dmfile_rough_set_index_load_time_ns);
tiflash_scan_context_pb.set_total_dmfile_read_time_ns(total_dmfile_read_time_ns);
tiflash_scan_context_pb.set_total_create_snapshot_time_ns(total_create_snapshot_time_ns);
tiflash_scan_context_pb.set_total_dmfile_rough_set_index_load_time_ms(total_dmfile_rough_set_index_load_time_ns / 1000000);
tiflash_scan_context_pb.set_total_dmfile_read_time_ms(total_dmfile_read_time_ns / 1000000);
tiflash_scan_context_pb.set_total_create_snapshot_time_ms(total_create_snapshot_time_ns / 1000000);
return tiflash_scan_context_pb;
}

Expand All @@ -88,9 +88,9 @@ class ScanContext
total_dmfile_skipped_packs += other.total_dmfile_skipped_packs();
total_dmfile_scanned_rows += other.total_dmfile_scanned_rows();
total_dmfile_skipped_rows += other.total_dmfile_skipped_rows();
total_dmfile_rough_set_index_load_time_ns += other.total_dmfile_rough_set_index_load_time_ns();
total_dmfile_read_time_ns += other.total_dmfile_read_time_ns();
total_create_snapshot_time_ns += other.total_create_snapshot_time_ns();
total_dmfile_rough_set_index_load_time_ns += other.total_dmfile_rough_set_index_load_time_ms() * 1000000;
total_dmfile_read_time_ns += other.total_dmfile_read_time_ms() * 1000000;
total_create_snapshot_time_ns += other.total_create_snapshot_time_ms() * 1000000;
}
};

Expand Down

0 comments on commit 9e332ee

Please sign in to comment.