Git Product home page Git Product logo

trace_viewer's Introduction

trace_viewer

It is a tool to parse information from /sys/kernel/debug/tracing/trace

usage

get trace file from uos and sos by cat /sys/kernel/debug/tracing/trace > xxx_trace.log prepare period_string.json

  • trace_viewer -u uos_trace.log -s sos_trace.log -j period_string.json

    Case: timestamp in trace files is second. Result: create a time_periods.png.

  • trace_viewer -u uos_trace.log -s sos_trace.log -j period_string.json -c

    Case: timestamp in trace files is tsc. Result: create a time_periods.png.

  • trace_viewer -u uos_trace.log -s sos_trace.log -i

    Case: only want to merge uos and sos log, sort by time. Result: create a merged log and retrun.

  • trace_viewer -u uos_trace.log -s sos_trace.log -j period_string.json -t

    Case: want to get a n*n table Result: create table.txt and time_periods.png.

  • trace_viewer -u uos_trace.log -s sos_trace.log -j period_string.json -d

    Case: want to get a detail log Result: create detail.log and time_periods.png.

  • trace_viewer -u uos_trace.log -s sos_trace.log -j period_string.json -o

    Case: want to get each period's wave picture. Result: create n*n xx_xx.png and time_periods.png.

json file

  • "periods": {"key": "shortname"}

    "key" is the unite key string in the log. "shrotname": is the short name for "key".

  • "spec": ["shortname","sortname",...]

    define the whole sequence for the log, this will be used to pick all log which match the "spec" defined periods in order.

  • "draw_index": {"sos", [index in "spec", index in "spec"]}

    "sos" or "uos" are support. range of index is [0, length of "spec")

make trace_viewer

pyinstaller -F main.py -n trace_viewer

trace_viewer's People

Contributors

conghuic23 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.