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: CONTRIBUTING.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Thanks for helping make the Twitch CLI better!
6
6
-[Report an Issue](#report-an-issue)
7
7
-[Contributing Code with Pull Requests](#contributing-code-with-pull-requests)
8
8
-[Requirements](#requirements)
9
+
-[Profiling](#profiling)
9
10
-[Code of Conduct](#code-of-conduct)
10
11
-[Licensing](#licensing)
11
12
@@ -47,6 +48,11 @@ As noted in the [README](./README.md), all commands follow the following structu
47
48
48
49
Some commands may not be part of a designated product (for example, the `token` and `version` commands) - if you are building functionality that is not tied to a Twitch product, please open the PR to discuss further.
49
50
51
+
### Profiling
52
+
53
+
The Twitch CLI makes use of [pprof](https://github.com/google/pprof) for CPU profiling. This can be enabled on any system by setting the environment variable `TWITCH_CLI_ENABLE_CPU_PROFILER` to `true`.
54
+
By default, the CPU profile will be written to your system as `cpu.prof` when the program exits. This filename can be modified with the environment variable `TWITCH_CLI_CPU_PROFILER_FILE`.
55
+
50
56
## Code of Conduct
51
57
52
58
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
0 commit comments