зеркало из https://github.com/Azure/YCSB.git
[core] correct a function name in Measurements
This commit is contained in:
Родитель
0a43104985
Коммит
c28cab486e
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Copyright (c) 2010 Yahoo! Inc., 2016-2017 YCSB contributors. All rights reserved.
|
||||
* Copyright (c) 2010 Yahoo! Inc., 2016-2020 YCSB contributors. All rights reserved.
|
||||
* <p>
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you
|
||||
* may not use this file except in compliance with the License. You
|
||||
|
@ -109,7 +109,7 @@ public class DBWrapper extends DB {
|
|||
*/
|
||||
public void cleanup() throws DBException {
|
||||
try (final TraceScope span = tracer.newScope(scopeStringCleanup)) {
|
||||
long ist = measurements.getIntendedtartTimeNs();
|
||||
long ist = measurements.getIntendedStartTimeNs();
|
||||
long st = System.nanoTime();
|
||||
db.cleanup();
|
||||
long en = System.nanoTime();
|
||||
|
@ -130,7 +130,7 @@ public class DBWrapper extends DB {
|
|||
public Status read(String table, String key, Set<String> fields,
|
||||
Map<String, ByteIterator> result) {
|
||||
try (final TraceScope span = tracer.newScope(scopeStringRead)) {
|
||||
long ist = measurements.getIntendedtartTimeNs();
|
||||
long ist = measurements.getIntendedStartTimeNs();
|
||||
long st = System.nanoTime();
|
||||
Status res = db.read(table, key, fields, result);
|
||||
long en = System.nanoTime();
|
||||
|
@ -154,7 +154,7 @@ public class DBWrapper extends DB {
|
|||
public Status scan(String table, String startkey, int recordcount,
|
||||
Set<String> fields, Vector<HashMap<String, ByteIterator>> result) {
|
||||
try (final TraceScope span = tracer.newScope(scopeStringScan)) {
|
||||
long ist = measurements.getIntendedtartTimeNs();
|
||||
long ist = measurements.getIntendedStartTimeNs();
|
||||
long st = System.nanoTime();
|
||||
Status res = db.scan(table, startkey, recordcount, fields, result);
|
||||
long en = System.nanoTime();
|
||||
|
@ -193,7 +193,7 @@ public class DBWrapper extends DB {
|
|||
public Status update(String table, String key,
|
||||
Map<String, ByteIterator> values) {
|
||||
try (final TraceScope span = tracer.newScope(scopeStringUpdate)) {
|
||||
long ist = measurements.getIntendedtartTimeNs();
|
||||
long ist = measurements.getIntendedStartTimeNs();
|
||||
long st = System.nanoTime();
|
||||
Status res = db.update(table, key, values);
|
||||
long en = System.nanoTime();
|
||||
|
@ -216,7 +216,7 @@ public class DBWrapper extends DB {
|
|||
public Status insert(String table, String key,
|
||||
Map<String, ByteIterator> values) {
|
||||
try (final TraceScope span = tracer.newScope(scopeStringInsert)) {
|
||||
long ist = measurements.getIntendedtartTimeNs();
|
||||
long ist = measurements.getIntendedStartTimeNs();
|
||||
long st = System.nanoTime();
|
||||
Status res = db.insert(table, key, values);
|
||||
long en = System.nanoTime();
|
||||
|
@ -235,7 +235,7 @@ public class DBWrapper extends DB {
|
|||
*/
|
||||
public Status delete(String table, String key) {
|
||||
try (final TraceScope span = tracer.newScope(scopeStringDelete)) {
|
||||
long ist = measurements.getIntendedtartTimeNs();
|
||||
long ist = measurements.getIntendedStartTimeNs();
|
||||
long st = System.nanoTime();
|
||||
Status res = db.delete(table, key);
|
||||
long en = System.nanoTime();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Copyright (c) 2010-2016 Yahoo! Inc., 2017 YCSB contributors All rights reserved.
|
||||
* Copyright (c) 2010-2016 Yahoo! Inc., 2020 YCSB contributors All rights reserved.
|
||||
* <p>
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you
|
||||
* may not use this file except in compliance with the License. You
|
||||
|
@ -169,7 +169,7 @@ public class Measurements {
|
|||
tlIntendedStartTime.get().time = time;
|
||||
}
|
||||
|
||||
public long getIntendedtartTimeNs() {
|
||||
public long getIntendedStartTimeNs() {
|
||||
if (measurementInterval == 0) {
|
||||
return 0L;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Copyright (c) 2010 Yahoo! Inc., Copyright (c) 2016-2017 YCSB contributors. All rights reserved.
|
||||
* Copyright (c) 2010 Yahoo! Inc., Copyright (c) 2016-2020 YCSB contributors. All rights reserved.
|
||||
* <p>
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you
|
||||
* may not use this file except in compliance with the License. You
|
||||
|
@ -757,7 +757,7 @@ public class CoreWorkload extends Workload {
|
|||
HashMap<String, ByteIterator> cells = new HashMap<String, ByteIterator>();
|
||||
|
||||
|
||||
long ist = measurements.getIntendedtartTimeNs();
|
||||
long ist = measurements.getIntendedStartTimeNs();
|
||||
long st = System.nanoTime();
|
||||
db.read(table, keyname, fields, cells);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче