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
There are also two special variants of production builds for performance-related use cases:
81
+
82
+
-`production-stripped` builds are ideal for benchmarking Servo over time, with debug symbols stripped for faster initial startup
83
+
-`profiling` builds are ideal for [profiling](profiling.md) and troubleshooting performance issues; they behave like a debug or release build, but have the same performance as a production build
84
+
85
+
<table>
86
+
<thead>
87
+
<tr>
88
+
<th>
89
+
<th>production
90
+
<th>production-stripped
91
+
<th>profiling
92
+
<tbody>
93
+
<tr>
94
+
<th>mach <code>--profile</code>
95
+
<td><code>production</code>
96
+
<td><code>production-stripped</code>
97
+
<td><code>profiling</code>
98
+
<tr>
99
+
<th>debug info?
100
+
<td>no<td>no<td>yes
101
+
<tr>
102
+
<th>symbols?
103
+
<td>yes<td>no<td>yes
68
104
<tr>
69
105
<th>finds resources in<br>current working dir?
70
-
<td>yes<td>yes<td>no
106
+
<td>no<td>no<td>yes(!)
71
107
</table>
72
108
73
109
You can change these settings in a servobuild file (see [servobuild.example](https://github.com/servo/servo/blob/b79e2a0b6575364de01b1f89021aba0ec3fcf399/servobuild.example)) or in the root [Cargo.toml](https://github.com/servo/servo/blob/b79e2a0b6575364de01b1f89021aba0ec3fcf399/Cargo.toml).
0 commit comments