Coder Social home page Coder Social logo

papi-rs's Introduction

papi-rs

Usage

Add the following to your Cargo.toml:

[dependencies]
papi = "0.1.0"

Before building, ensure that PAPI is installed on your system.

What is papi-rs?

The purpose of this crate is to provide Rust-idiomatic, easy-to-use PAPI bindings. PAPI is a library that provides a consistent interface to hardware performance counters. Visit the PAPI website for more information.

Note that this crate does not provide a high-level interface to PAPI.

Environment Variables

If PAPI is installed at a custom location on your system (e.g., /opt/papi-5.7.0), then see the documentation in the papi-sys crate on how to configure custom search paths.

Versions

This library targets the current Rust stable release, and is currently tested with PAPI version 5.7.0.

Platforms

The following platforms are currently tested:

  • x86_64-unknown-linux-gnu
  • powerpc64le-unknown-linux-gnu

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

papi-rs's People

Contributors

lutzcle avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

papi-rs's Issues

Build fails with PAPI v6

Trying to build this crate yields the error

error[E0425]: cannot find function, tuple struct or tuple variant `PAPI_num_counters` in crate `ffi`
   --> src/event_set.rs:542:42
    |
542 |         let num_counters = unsafe { ffi::PAPI_num_counters() };
    |                                          ^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `PAPI_num_events`

It seems like the PAPI_num_counters function was removed in the latest version of the library.

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.