Git Product home page Git Product logo

bpf-profile's Introduction

BPF trace to profile converter

This program reads a trace file that contains trace output from the BPF VM, and generates a profile for tools like callgrind_annotate or QCacheGrind.

To resolve names of functions this program may require a dump file containing the instruction dump of the ELF.

You can create the dump file by passing --dump flag to cargo-build-bpf.

You can create the trace file by running the Solana cluster under RUST_LOG: export RUST_LOG=solana_bpf_loader_program=trace

Use the bpf-profile help generate command to list available options.

When the trace file is ready, use the following command: bpf-profile generate <trace file path> -d <dump file path> -o callgrind.out which should produce new file callgrind.out containing the profile data. It can be read by any standard tool for analysis.

This program expects input files created with Solana 1.6.x. Other versions of Solana may generate incompatible data.

bpf-profile's People

Contributors

vakond avatar s-medvedev avatar

Stargazers

 avatar  avatar patil.lens avatar Stanislav Tkach avatar Ardeshir avatar dzmitry-lahoda avatar Artur Rodrigues de Moura avatar  avatar Ivan avatar mr.yalamanchi avatar Cory Johnson avatar Georgios Konstantopoulos avatar

Watchers

Vitali ☀️ avatar  avatar mr.yalamanchi avatar

bpf-profile's Issues

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.