... | @@ -60,12 +60,12 @@ if you see some zeroes here it probably means your processor isn't fully support |
... | @@ -60,12 +60,12 @@ if you see some zeroes here it probably means your processor isn't fully support |
|
Now to profile a GHC-compiled executable:
|
|
Now to profile a GHC-compiled executable:
|
|
|
|
|
|
```wiki
|
|
```wiki
|
|
$ sudo perf record ./queens
|
|
$ perf record ./queens
|
|
$ sudo perf report
|
|
$ perf report
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
I'm not entirely sure why sudo is required, but apparently it is for record, and then because the log file is owned by root you need sudo for report too. The output looks something like this:
|
|
The output looks something like this:
|
|
|
|
|
|
```wiki
|
|
```wiki
|
|
# Samples: 9161149923
|
|
# Samples: 9161149923
|
... | | ... | |