You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPMENT.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,29 @@ The app writes logs into:
132
132
1.`stdout` in development mode
133
133
2. The Tauri [logs](https://tauri.app/v1/api/js/path/#platform-specific) directory
134
134
135
+
One can get performance log when launching the application locally as follows:
136
+
137
+
```bash
138
+
GITBUTLER_PERFORMANCE_LOG=1 LOG_LEVEL=debug pnpm tauri dev
139
+
```
140
+
141
+
For more realistic performance logging, use local release builds with `--release`.
142
+
143
+
```bash
144
+
GITBUTLER_PERFORMANCE_LOG=1 LOG_LEVEL=debug pnpm tauri dev --release
145
+
```
146
+
147
+
Since release builds are configured for public releases, they are very slow to compile.
148
+
Speed them up by sourcing the following file.
149
+
150
+
```bash
151
+
export CARGO_PROFILE_RELEASE_DEBUG=0
152
+
export CARGO_PROFILE_RELEASE_INCREMENTAL=false
153
+
export CARGO_PROFILE_RELEASE_LTO=false
154
+
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=256
155
+
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
156
+
```
157
+
135
158
### Tokio
136
159
137
160
We are also collecting tokio's runtime tracing information that could be viewed using [tokio-console](https://github.com/tokio-rs/console#tokio-console-prototypes):
0 commit comments