Skip to content

Commit

Permalink
Update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
gz committed Apr 19, 2019
1 parent 7b6b545 commit b468f73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
target
Cargo.lock
.vscode

# JetBrains tools
*.iml
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perfcnt"
version = "0.4.3"
version = "0.4.4"
authors = ["Gerd Zellweger <mail@gerdzellweger.com>", "Brian Martin <bmartin@twitter.com>"]
description = "Library to configure and read hardware performance counters in rust."
homepage = "https://github.com/gz/rust-perfcnt"
Expand Down
2 changes: 1 addition & 1 deletion examples/create_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use perfcnt::{PerfCounter, AbstractPerfCounter};
use perfcnt::linux::{PerfCounterBuilderLinux};

pub fn main() {
let counter_description = x86::perfcnt::intel::core_counters().unwrap().get("BR_INST_RETIRED.ALL_BRANCHES").unwrap();
let counter_description = x86::perfcnt::intel::events().unwrap().get("BR_INST_RETIRED.ALL_BRANCHES").unwrap();
let mut pc: PerfCounter = PerfCounterBuilderLinux::from_intel_event_description(counter_description)
.exclude_idle()
.exclude_kernel()
Expand Down

0 comments on commit b468f73

Please sign in to comment.