from xpedite import TopdownNode, Metric, Event, ResultOrder

# Name of the application
appName = 'xpediteDemo'

# Host, where the applciation is running
appHost = 'localhost'

# Path of the appinfo file, configured in the application while initializing xpedite framework
appInfo = 'xpedite-appinfo.txt'

################################################## Probe List ##################################################
# Probes when enabled collect samples druing execution. The probes listed here are enabled during "xpedite record"
# Probes with types TxnBeginProbe and TxnEndProbe mark the beginning and end of transactions respectively.
probes = [
    Probe('Work Begin', sysName='WorkBegin'),
    Probe('Work End', sysName='WorkEnd'),
]

############################################# Performance Counters #############################################
# List of performance counters to be collected for this profile
# The element can be one of
#   1. Node in a topdown hierarchy
#   2. Metrics like IPC etc.
#   3. Raw hardware perforance counter for a micro architectural event
# To see topdown hierarchy run        - "xpedite topdown"
# To see available metrics run        - "xpedite metrics"
# To see available raw counters run   - "xpedite evlist"
#pmc = [
#  TopdownNode('Root'),         # top down analysis for Root node of the hierarchy
#  Metric('IPC'),               # computer instructions retired per cycle mertric
# Name of the application
appName = 'allocator'

# Host, where the applciation is running
appHost = '127.0.0.1'

# Path of the appinfo file, configured in the application while initializing xpedite framework
appInfo = 'xpedite-appinfo.txt'

################################################## Probe List ##################################################
# Probes when enabled collect samples druing execution. The probes listed here are enabled during "xpedite record"
# Probes with types TxnBeginProbe and TxnEndProbe mark the beginning and end of transactions respectively.
probes = [
    TxnBeginProbe('Allocation Begin', sysName='AllocationBegin'),
    TxnEndProbe('Allocation End', sysName='AllocationEnd'),
    Probe('Calloc Begin', sysName='CallocBegin'),
    Probe('Calloc End', sysName='CallocEnd'),
    Probe('Free Begin', sysName='FreeBegin'),
    Probe('Free End', sysName='FreeEnd'),
    Probe('Malloc Begin', sysName='MallocBegin'),
    Probe('Malloc End', sysName='MallocEnd'),
    Probe('Mmap Begin', sysName='MmapBegin'),
    Probe('Mmap End', sysName='MmapEnd'),
    Probe('Munmap Begin', sysName='MunmapBegin'),
    Probe('Munmap End', sysName='MunmapEnd'),
    Probe('New Begin', sysName='NewBegin'),
    Probe('New End', sysName='NewEnd'),
    Probe('Posix Memalign Begin', sysName='PosixMemalignBegin'),
    Probe('Posix Memalign End', sysName='PosixMemalignEnd'),
    Probe('Realloc Begin', sysName='ReallocBegin'),
    Probe('Realloc End', sysName='ReallocEnd'),
示例#3
0
# Name of the application
appName = 'MyApp'

# Host, where the applciation is running
appHost = '10.162.217.143'

# Path of the appinfo file, configured in the application while initializing xpedite framework
appInfo = '/var/tmp/xpedite-appinfo.txt'

################################################## Probe List ##################################################
# Probes when enabled collect samples druing execution. The probes listed here are enabled during "xpedite record"
# Probes with types TxnBeginProbe and TxnEndProbe mark the beginning and end of transactions respectively.
probes = [
    TxnBeginProbe('Handler begin',
                  sysName='handlerBegin'),  # Begin of event Handler
    Probe('Parse Begin', sysName='parseBegin'),  # Begin of message parsing
    Probe('Msg Alloc Begin',
          sysName='MsgAllocBegin'),  # Begin of message allocation
    Probe('Msg Alloc End', sysName='MsgAllocEnd'),  # End of message allocation
    Probe('Tx Begin', sysName='TxBegin'),  # Begin of transmission
    Probe('Tx end', sysName='TxEnd'),  # End of transmission
    TxnEndProbe('handler end', sysName='handlerEnd'),  # End of event Handler
]

############################################# Performance Counters #############################################
# List of performance counters to be collected for this profile
# The element can be one of
#   1. Node in a topdown hierarchy
#   2. Metrics like IPC etc.
#   3. Raw hardware perforance counter for a micro architectural event
# To see topdown hierarchy run        - "xpedite topdown"