diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-10-14 10:54:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-10-14 10:54:04 +0200 |
| commit | 38493312da49f7b5b2d6d2c27f0841c3f0a50302 (patch) | |
| tree | e9a69965fea3b6d67a7aaabf3d42c0c9c1e2704f /tools | |
| parent | 78514887ec6bf02a2a8d135a85a7c18d384d73bb (diff) | |
allow to specify parallelism level in tools/execlog
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/execlog/execlog.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/execlog/execlog.go b/tools/execlog/execlog.go index f09ca7e56..0325f0ef0 100644 --- a/tools/execlog/execlog.go +++ b/tools/execlog/execlog.go @@ -20,6 +20,7 @@ import ( var ( flagExecutor = flag.String("executor", "", "path to executor binary") flagLog = flag.String("log", "", "comma-delimited list of log files to execute") + flagProcs = flag.Int("procs", 1, "number of parallel processes to execute the log") ) func main() { @@ -60,7 +61,7 @@ func main() { } var pos uint32 - for p := 0; p < 16; p++ { + for p := 0; p < *flagProcs; p++ { go func() { env, err := ipc.MakeEnv(*flagExecutor, 5*time.Second, 0) if err != nil { |
