Skip to content

Instantly share code, notes, and snippets.

View klochowicz's full-sized avatar
🦀

Mariusz Klochowicz klochowicz

🦀
View GitHub Profile
@klochowicz
klochowicz / macos_profiling.org
Last active May 5, 2022 05:53
Profiling Rust projects under macOS

Using Instruments with Rust

Cargo package - not working

In the past, there was a super-convenient package `carge-instruments` that made running Instruments for your binary a breeze. Unfortunately, ever since Big Sur got introduced, tt doesn’t work; we’re hitting this error instead: cmyr/cargo-instruments#40 Everything binary now needs to be signed, even if it’s just an ad-hoc signature.

Signing your binary

Create entitlements file for debug signing

Paste the following content in ~~/debug.plist~ file.

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>com.apple.security.get-task-allow</key><true/></dict></plist>
@klochowicz
klochowicz / keybase.md
Created April 13, 2019 09:44
keybase.md

Keybase proof

I hereby claim:

  • I am klochowicz on github.
  • I am apricot (https://keybase.io/apricot) on keybase.
  • I have a public key ASDZEYQ6UyuoyJY89V4hHmxwUQBajGPWLkZPpAbu_DwVZgo

To claim this, I am signing this object: