Comments (4)
I just tried it, and running dtrace as root with a non system binary works. When running as normal user, it says: "dtrace: failed to initialize dtrace: DTrace requires additional privileges".
from flamegraph.
Inferno already has support for sample
, so this should not be terribly difficult to implement. I just realized how horrible the UX of using DTrace on macOS is, so PRs are very welcome! (though I can't test this personally)
from flamegraph.
dtrace is not available on macOS when "system integrity protection is on"
Actually it only doesn't work for executables with restricted entitlements (like many system executables)
dtrace cannot control executables signed with restricted entitlements
from flamegraph.
@bjorn3 are you sure? I've found conflicting information about this. If that's the case that would be great though.
from flamegraph.
Related Issues (20)
- Proposed feature: filter/match HOT 2
- Fails to load `zsh` completions HOT 6
- Option for a time limit HOT 3
- Attach to an already open process HOT 2
- flamegraph --palette=hot fails to downcast to Palette HOT 6
- unable to sample on WSL2 HOT 1
- [Feature Request] Show Progress HOT 3
- Support running of `libtest` style (unit-test) benchmarks
- The call stack of functions mostly records addresses HOT 2
- Is there `--offline` mode? HOT 1
- perf regression: Symbols/function names not demangled HOT 11
- Name mangling in output HOT 2
- Per thread graph HOT 3
- Per thread graph HOT 1
- Run on WSL has only 1 sample in the flamegraph HOT 4
- Flamegraph throws error when attempting to profile Rust application HOT 6
- Very long analysis due to slow addr2line calls HOT 2
- Running with `--root` cannot read kallsyms HOT 1
- command to generate flamegraph from existing perf.data HOT 10
- On MacOS, dtrace fails due to running as the wrong CPU architecture if the "cargo" binary's arch doesn't the arch of the program being profiled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flamegraph.