Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#11294] Docdb : Support use of MonoTime for understanding latencies …
…better Summary: CoarseMonoTime only produces timestamp at a granularity of 1ms, which makes it cheaper to use than MonoTime. However, if we are doing perf experiments we may want a more fine grained break down instead. ``` e.g: .. 1113 06:14:17.542610 (+ 0us) inbound_call.cc:90] Created InboundCall .. 1113 06:14:17.542610 (+ 0us) service_pool.cc:180] Inserting onto call queue .. 1113 06:14:17.542610 (+ 0us) service_pool.cc:261] Handling call Write .. 1113 06:14:17.542610 (+ 0us) tablet_service.cc:1591] Start Write .. 1113 06:14:17.544610 (+ 2000us) tablet.cc:2019] AcquireLocksAndPerformDocOperations .. 1113 06:14:17.544610 (+ 0us) tablet.cc:3776] Acquiring write permit .. 1113 06:14:17.544610 (+ 0us) operation_counter.cc:187] ScopedRWOperation Tablet schema .. 1113 06:14:17.544610 (+ 0us) tablet.cc:3777] Acquiring write permit done .. 1113 06:14:17.544610 (+ 0us) operation_counter.cc:199] Reset null .. 1113 06:14:17.544610 (+ 0us) operation_counter.cc:199] Reset null .. 1113 06:14:17.544610 (+ 0us) operation_counter.cc:187] ScopedRWOperation RocksDB non-abortable read/write operations .. 1113 06:14:17.544610 (+ 0us) operation_counter.cc:199] Reset null .. 1113 06:14:17.544610 (+ 0us) shared_lock_manager.cc:255] Locking a batch of 3 keys .. 1113 06:14:17.544610 (+ 0us) shared_lock_manager.cc:295] Acquired a lock batch of 3 keys .. 1113 06:14:17.544610 (+ 0us) conflict_resolution.cc:966] ResolveTransactionConflicts .. 1113 06:14:17.545610 (+ 1000us) conflict_resolution.cc:266] No conflicts. .. 1113 06:14:17.545610 (+ 0us) running_transaction.cc:210] SendStatusRequest : 52ec72c4-c941-4f40-96ad-3478a3ca0528 .. 1113 06:14:17.545610 (+ 0us) operation_counter.cc:199] Reset null .. 1113 06:14:17.545610 (+ 0us) operation_counter.cc:199] Reset RocksDB non-abortable read/write operations .. 1113 06:14:17.545610 (+ 0us) operation_counter.cc:199] Reset Tablet schema .. 1113 06:14:17.545610 (+ 0us) tablet.cc:3599] self->TransactionalConflictsResolved .. 1113 06:14:17.545610 (+ 0us) conflict_resolution.cc:973] resolver->Resolve done ``` This diff introduces a flag for using MonoTime instead of CoarseMonoTime The default is to still use CoarseMonoTime to avoid any perf degradation. Test Plan: Jenkins Reviewers: rsami Reviewed By: rsami Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D14481
- Loading branch information