You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by su...@apache.org on 2019/06/06 13:38:51 UTC
[incubator-iotdb] branch time_statstic updated: change time from
nanotime to ms, remove some operation
This is an automated email from the ASF dual-hosted git repository.
suyue pushed a commit to branch time_statstic
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/time_statstic by this push:
new 60dd2a9 change time from nanotime to ms, remove some operation
60dd2a9 is described below
commit 60dd2a9e6ffef7b68d125213e92d03b4984757e1
Author: suyue <23...@qq.com>
AuthorDate: Thu Jun 6 21:38:35 2019 +0800
change time from nanotime to ms, remove some operation
---
iotdb/iotdb/conf/iotdb-engine.properties | 6 ++--
.../org/apache/iotdb/db/cost/statistic/Test.java | 35 ----------------------
.../db/cost/statistic/PerformanceStatTest.java | 5 ++++
3 files changed, 8 insertions(+), 38 deletions(-)
diff --git a/iotdb/iotdb/conf/iotdb-engine.properties b/iotdb/iotdb/conf/iotdb-engine.properties
index f8bca91..f724051 100644
--- a/iotdb/iotdb/conf/iotdb-engine.properties
+++ b/iotdb/iotdb/conf/iotdb-engine.properties
@@ -221,9 +221,9 @@ IP_white_list=0.0.0.0/0
update_historical_data_possibility=false
# performance statistic configuration
-# Is stat time cost of sub-module in write process enable
+# Is stat performance of sub-module enable
enable_performance_stat=false
-# The interval of small flush in ms.
+# The interval of display statistic result in ms.
performance_stat_display_interval=60000
-# The memory used for performance_stat.
+# The memory used for performance_stat in kb.
performance_stat_memory_in_kb=20
diff --git a/iotdb/src/main/java/org/apache/iotdb/db/cost/statistic/Test.java b/iotdb/src/main/java/org/apache/iotdb/db/cost/statistic/Test.java
deleted file mode 100644
index 2172a87..0000000
--- a/iotdb/src/main/java/org/apache/iotdb/db/cost/statistic/Test.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.apache.iotdb.db.cost.statistic;
-
-public class Test {
-
- public static void main(String[] args) {
- Measurement.INSTANCE.addOperationLatency(Operation.EXECUTE_BATCH_SQL, System.nanoTime());
- Measurement.INSTANCE.addOperationLatency(Operation.EXECUTE_BATCH_SQL, System.nanoTime()-8000000);
-
- try {
- Measurement.INSTANCE.start();
- Measurement.INSTANCE.startContinuousStatistics();
- Measurement.INSTANCE.addOperationLatency(Operation.EXECUTE_BATCH_SQL, System.nanoTime());
- Measurement.INSTANCE.addOperationLatency(Operation.EXECUTE_BATCH_SQL, System.nanoTime()-8000000);
- Thread.currentThread().sleep(2000);
- Measurement.INSTANCE.stopStatistic();
- Measurement.INSTANCE.stopStatistic();
- Measurement.INSTANCE.stopStatistic();
- System.out.println("After stopStatistic!");
- Thread.currentThread().sleep(1000);
- Measurement.INSTANCE.startContinuousStatistics();
- System.out.println("RE start!");
- Thread.currentThread().sleep(2000);
- Measurement.INSTANCE.startContinuousStatistics();
- System.out.println("RE start2!");
- Thread.currentThread().sleep(2000);
- Measurement.INSTANCE.stopStatistic();
- System.out.println("After stopStatistic2!");
- Measurement.INSTANCE.stop();
-
- }
- catch (Exception e) {
- e.printStackTrace();
- }
- }
-}
diff --git a/iotdb/src/test/java/org/apache/iotdb/db/cost/statistic/PerformanceStatTest.java b/iotdb/src/test/java/org/apache/iotdb/db/cost/statistic/PerformanceStatTest.java
new file mode 100644
index 0000000..8f6c325
--- /dev/null
+++ b/iotdb/src/test/java/org/apache/iotdb/db/cost/statistic/PerformanceStatTest.java
@@ -0,0 +1,5 @@
+package org.apache.iotdb.db.cost.statistic;
+
+public class PerformanceStatTest {
+
+}