Code Monkey home page Code Monkey logo

vse-sync-pp's Introduction

vse-sync-pp

This repository contains python modules for analyzing and generating synchronization test results by means of consuming input data coming from:

  • ptp4l, ts2phc, and phc2sys logs coming from PTP operator logs

  • collector files generated by collector tools developed in collectors

These are the main python modules:

  • demux: Demultiplex gathered data messages of a given identifier coming from a single multiplexed data source. This module consumes directly data coming from collectors. For each demultiplexed data message of a given identifier print the canonical data produced by the parser as JSON. The module leverages parse module to generate its output.

  • parse: Parse data messages of a given identifier from a single data source. When used standalone (without demux module) the data source comes from PTP operator logs. For each parsed data message print the canonical data produced by the parser as JSON.

  • analyze: Analyze data messages from a single source. Analyze data parsed from the log messages in input. Print the test result and data analysis as JSON.

  • plot: plot data parsed from data messages coming from a single source. The data parsed from incoming data messages is plotted to an image file.

Running

Demux collector data from file

To see the collector demuxers available:

python3 -m vse_sync_pp.demux --help

To filter a specific collector from file aggregating several collectors:

python3 -m vse_sync_pp.demux <filename> <filter>

To filter a collector presented on stdin:

python3 -m vse_sync_pp.demux - <filter>

Parse a log file

To see the parsers available:

python3 -m vse_sync_pp.parse --help

To parse an existing log file:

python3 -m vse_sync_pp.parse <filename> <parser>

To parse data presented on stdin:

python3 -m vse_sync_pp.parse - <parser>

To output timestamps relative to the timestamp of the first accepted log line:

python3 -m vse_sync_pp.parse --relative <filename> <parser>

Plot unfiltered log data

To see the parsers available:

python3 -m vse_sync_pp.plot --help

To plot data from existing log file <filename> to <image>:

python3 -m vse_sync_pp.plot <filename> <parser> <image>

To plot data presented on stdin:

python3 -m vse_sync_pp.plot - <parser> <image>

To plot already parsed (canonical) data:

python3 -m vse_sync_pp.plot --canonical <filename> <parser> <image>

Analyze unfiltered log data

To see the analyzers available:

python3 -m vse_sync_pp.analyze --help

To analyze data from existing log file:

python3 -m vse_sync_pp.analyze <filename> <analyzer>

To analyze data presented on stdin:

python3 -m vse_sync_pp.analyze - <analyzer>

To analyze already parsed (canonical) data:

python3 -m vse_sync_pp.analyze --canonical <filename> <analyzer>

Contributing to the repo

See the contribution guide for detailed instructions on how to get started contributing to this repo.

vse-sync-pp's People

Contributors

javierpena avatar jnunyez avatar natifridman avatar nocturnalastro avatar spenced avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.