Perfmon.htm
Perfmon.htm
ToC path:
Python class Perfmon
The SmartEDB Performance Monitor is implemented in the class Perfmon which is defined as follows:
class Perfmon(object):
TotalPages = 0
FreePages = 1
UsedPages = 2
FileSize = 3
LogFileSize = 4
UsedFileSize = 5
CacheHitCount = 6
CacheMissCount = 7
CachePagesAllocated = 8
CachePagesUSed = 9
CachePagesPinned = 10
CachePagesModified = 11
CachePagesDirty = 12
CachePagesCopied = 13
CachePagesWriteDelayed = 14
DiskReadTime = 0
DiskWriteTime = 1
LogWriteTime = 2
CommitTime = 3
RollbackTime = 4
SnapshotDuration = 5
ClusterNetSendTime = 6
ClusterNetRecvTime = 7
@staticmethod
def init(memsize =64 << 20):
global _SmartEDB
return _SmartEDB.perfmon_init(memsize)
@staticmethod
def close():
global _SmartEDB
return _SmartEDB.perfmon_close()
@staticmethod
def attach(db):
global _SmartEDB
return _SmartEDB.perfmon_attach(db)
@staticmethod
def detach(db):
global _SmartEDB
return _SmartEDB.perfmon_detach(db)
@staticmethod
def getDbName():
global _SmartEDB
return _SmartEDB.perfmon_get_db_name()
@staticmethod
def getOptions():
global _SmartEDB
return _SmartEDB.perfmon_get_options()
@staticmethod
def setOption(option, value):
global _SmartEDB
return _SmartEDB.perfmon_set_option(option, value)
Send feedback on this topic to McObject.Download documentation.© 2001-2024 McObject LLC. All rights reserved.
Created with the Personal Edition of HelpNDoc: Easily share your documentation with the world through a beautiful website