MCPcopy Create free account
hub / github.com/couchbase/forestdb / timed_fdb_iterator_init

Function timed_fdb_iterator_init

utils/timing.cc:178–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178ts_nsec timed_fdb_iterator_init(fdb_kvs_handle *kv, fdb_iterator **it){
179
180 ts_nsec start, end;
181 fdb_status status;
182
183 start = get_monotonic_ts();
184 status = fdb_iterator_init(kv, it, NULL, 0, NULL, 0, FDB_ITR_NONE);
185 end = get_monotonic_ts();
186
187 if(status == FDB_RESULT_SUCCESS){
188 return ts_diff(start, end);
189 } else {
190 return ERR_NS;
191 }
192
193
194}
195
196ts_nsec timed_fdb_iterator_get(fdb_iterator *it, fdb_doc **doc){
197

Callers 3

sequential_setFunction · 0.85
permutated_keysetFunction · 0.85
reader_threadFunction · 0.85

Calls 2

get_monotonic_tsFunction · 0.85
ts_diffFunction · 0.85

Tested by

no test coverage detected