Skip to content

Commit

Permalink
Increase maximal length of profile span for repository function calls.
Browse files Browse the repository at this point in the history
Previously, when calling tools under the install base like
```
local: /home/twerth/.cache/bazel/_bazel_twerth/install/3b42d7048466237272cc2c9346f0b8ea/process-wrapper --timeout=600 --kill_delay=15 whoami
```
you would not even see that `process-wrapper` has been called.

There is only a handful of Starlark repository function calls in a typical build and their description should also be well-compressible, so the increase is fine.

PiperOrigin-RevId: 598584702
Change-Id: I03fcf504e4a805aee21f92e3bf16b44e58bfbf10
  • Loading branch information
meisterT authored and copybara-github committed Jan 15, 2024
1 parent df42879 commit 38918be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ private interface AsyncTask {
boolean cancel();
}

/** Max. number of command line args added as a profiler description. */
private static final int MAX_PROFILE_ARGS_LEN = 80;
/** Max. length of command line args added as a profiler description. */
private static final int MAX_PROFILE_ARGS_LEN = 512;

protected final Path workingDirectory;
protected final Environment env;
Expand Down

0 comments on commit 38918be

Please sign in to comment.