Commit 19b706d
authored
Add experimental config to write Mountpoint PID to file (#1261)
When investigating performance, we wanted to automate the collection of
profiler captures using a tool like `perf`. To do this, we needed the
process ID of Mountpoint. By writing out the PID to a file, scripts
could automatically record profiles for the lifetime of Mountpoint by
providing its PID to `perf`.
This change adds the ability to write Mountpoint's PID to a file under
an experimental/unstable environment variable. Since its unclear if we
want to expose this properly such as providing a CLI argument, we are
taking the unstable environment variable approach to make clear this
configuration may change or be removed in future.
### Does this change impact existing behavior?
This change adds a new experimental feature to write Mountpoint's PID to
a file.
### Does this change need a changelog entry? Does it require a version
change?
Since this is adding an experimental feature, no changelog entry is
required. No minor version patch is required, as this is not a stable
feature addition.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and I agree to the terms of
the [Developer Certificate of Origin
(DCO)](https://developercertificate.org/).
---------
Signed-off-by: Daniel Carl Jones <[email protected]>1 parent e56d343 commit 19b706d
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
608 | 610 | | |
609 | 611 | | |
610 | 612 | | |
| |||
635 | 637 | | |
636 | 638 | | |
637 | 639 | | |
| 640 | + | |
| 641 | + | |
638 | 642 | | |
639 | 643 | | |
640 | 644 | | |
| |||
1251 | 1255 | | |
1252 | 1256 | | |
1253 | 1257 | | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1254 | 1274 | | |
1255 | 1275 | | |
1256 | 1276 | | |
| |||
0 commit comments