Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added x64 architecture fix to README #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,18 @@ Did you quit your app gracefully, such as with cmd-Q? If you instead just hit ST

### My traces appear empty

You probably went over the memory size that Perfetto is set to use by default (80MB).
1. Memory size

If you are doing intensive profiling with lots of functions being called many times, you'll probably want to increase this limit. You can do this by passing the number of `kb` you want to `beginSession`:
The memory size that Perfetto is set to use by default is 80MB.
If you are doing intensive profiling with lots of functions being called many times, you'll probably want to increase this limit. You can do this by passing the number of `kb` you want to `beginSession`:

```
MelatoninPerfetto::get().beginSession(300000); # 300MB
```

```
MelatoninPerfetto::get().beginSession(300000); # 300MB
```
2. Architecture
If you are on arm, try changing the target architecture in your cmake options: `-DCMAKE_OSX_ARCHITECTURES="x86_64"`

### I keep forgetting to turn perfetto off!

Expand Down