summaryrefslogtreecommitdiff
path: root/examples/python/ex_stat.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/ex_stat.py')
-rwxr-xr-xexamples/python/ex_stat.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/python/ex_stat.py b/examples/python/ex_stat.py
index 10f1d6d597c..1772badd076 100755
--- a/examples/python/ex_stat.py
+++ b/examples/python/ex_stat.py
@@ -32,7 +32,6 @@
import os
from wiredtiger import wiredtiger_open,WIREDTIGER_VERSION_STRING,stat
-
def main():
# Create a clean test directory for this run of the test program
os.system('rm -rf WT_HOME')
@@ -58,19 +57,16 @@ def main():
print_derived_stats(session)
conn.close()
-
def print_database_stats(session):
statcursor = session.open_cursor("statistics:")
print_cursor(statcursor)
statcursor.close()
-
def print_file_stats(session):
fstatcursor = session.open_cursor("statistics:table:access")
print_cursor(fstatcursor)
fstatcursor.close()
-
def print_overflow_pages(session):
ostatcursor = session.open_cursor("statistics:table:access")
val = ostatcursor[stat.dsrc.btree_overflow]
@@ -78,7 +74,6 @@ def print_overflow_pages(session):
print '%s=%s' % (str(val[0]), str(val[1]))
ostatcursor.close()
-
def print_derived_stats(session):
dstatcursor = session.open_cursor("statistics:table:access")
ckpt_size = dstatcursor[stat.dsrc.block_checkpoint_size][1]
@@ -97,7 +92,6 @@ def print_derived_stats(session):
print "Write amplification is " + '{:.2f}'.format(fs_writes / (app_insert + app_remove + app_update))
dstatcursor.close()
-
def print_cursor(mycursor):
while mycursor.next() == 0:
val = mycursor.get_value()
@@ -106,4 +100,3 @@ def print_cursor(mycursor):
if __name__ == "__main__":
main()
-