Skip to main content

Utilities for processing Recorder traces

Project description

recorder-viz

This is a python package which contains tools for processing Recorder traces.

Installation and Visualization

recorder-viz relies on Recorder and a few python libraries to run. Please see the document here.

Below are some example graphs generated from the FLASH traces. example graphs

Advanced Usages

The RecorderReader class contains all infomration about the Recorder traces.

class RecorderReader:
    self.GM: instance of GlobalMetadata
    self.LMs: list of LocalMetadata objects, one for each rank
    self.records: self.records[i] is a list of Record objects of rank i.

GlobalMetadta, LocalMetadata and Record are three Python wrappers of C structures.

class LocalMetadata(Structure):
    self.total_records: int
    self.num_files: int
    self.filemap: set()
    self.function_count: []


class RecorderMetadata(Structure):
    _fields_ = [
            ("total_ranks", c_int),
            ("start_ts", c_double),
            ("time_resolution", c_double),
            ("ts_buffer_elements", c_int),
            ("ts_compression_algo", c_int),
    ]

class Record(Structure):
    _fields_ = [
            ("tstart", c_double),
            ("tend", c_double),
            ("level", c_ubyte),
            ("func_id", c_ubyte),
            ("tid", c_int),
            ("arg_count", c_ubyte),
            ("args", POINTER(c_char_p)),
    ]

Here's an example on how to use the provided classes.

from recorder_viz import RecorderReader

reader = RecorderReader("path/to/Recorder-traces-folder")

for rank in range(reader.GM.total_ranks):
    LM = reader.LMs[rank]
    print("Rank: %d, Number of trace records: %d" %(rank, LM.total_records))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recorder-viz-0.5.6.tar.gz (1.1 MB view details)

Uploaded Source

File details

Details for the file recorder-viz-0.5.6.tar.gz.

File metadata

  • Download URL: recorder-viz-0.5.6.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.12

File hashes

Hashes for recorder-viz-0.5.6.tar.gz
Algorithm Hash digest
SHA256 7abc7eb7cc3d4410eb90221469a5fcc085e603298fd9b484cfcbfa70c18ecac9
MD5 658d1e7096f8ad6f64bc77349a1eb143
BLAKE2b-256 1e71325225d2957b6c437bebaa22359e9d83dbbc438902b8d7db3b964ba5570b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page