@ -3,7 +3,7 @@
// LICENSE file in the root directory of this source tree. An additional grant
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
// of patent rights can be found in the PATENTS file in the same directory.
# include "db/event_logger_ helpers.h"
# include "db/event_helpers.h"
namespace rocksdb {
namespace rocksdb {
@ -11,13 +11,13 @@ namespace {
inline double SafeDivide ( double a , double b ) { return b = = 0.0 ? 0 : a / b ; }
inline double SafeDivide ( double a , double b ) { return b = = 0.0 ? 0 : a / b ; }
} // namespace
} // namespace
void EventLogger Helpers : : AppendCurrentTime ( JSONWriter * jwriter ) {
void EventHelpers : : AppendCurrentTime ( JSONWriter * jwriter ) {
* jwriter < < " time_micros "
* jwriter < < " time_micros "
< < std : : chrono : : duration_cast < std : : chrono : : microseconds > (
< < std : : chrono : : duration_cast < std : : chrono : : microseconds > (
std : : chrono : : system_clock : : now ( ) . time_since_epoch ( ) ) . count ( ) ;
std : : chrono : : system_clock : : now ( ) . time_since_epoch ( ) ) . count ( ) ;
}
}
void EventLogger Helpers : : LogTableFileCreation (
void EventHelpers : : LogTableFileCreation (
EventLogger * event_logger , int job_id , uint64_t file_number ,
EventLogger * event_logger , int job_id , uint64_t file_number ,
uint64_t file_size , const TableProperties & table_properties ) {
uint64_t file_size , const TableProperties & table_properties ) {
JSONWriter jwriter ;
JSONWriter jwriter ;