Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: client/cmd/isolated/common.go

Issue 1149823004: Set GOMAXPROCS=runtime.NumCPU(). (Closed) Base URL: git@github.com:luci/luci-go@4_drop_tid
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/cmd/isolate/common.go ('k') | client/cmd/swarming/common.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cmd/isolated/common.go
diff --git a/client/cmd/isolated/common.go b/client/cmd/isolated/common.go
index 90f1fb334da2b72fddf9f15f6d094baff325bca4..1666e39b257007b4d32e662f054125b636577f23 100644
--- a/client/cmd/isolated/common.go
+++ b/client/cmd/isolated/common.go
@@ -5,11 +5,17 @@
package main
import (
+ "runtime"
+
"github.com/luci/luci-go/client/internal/common"
"github.com/luci/luci-go/client/isolatedclient"
"github.com/maruel/subcommands"
)
+func init() {
+ runtime.GOMAXPROCS(runtime.NumCPU())
+}
+
type commonFlags struct {
subcommands.CommandRunBase
defaultFlags common.Flags
« no previous file with comments | « client/cmd/isolate/common.go ('k') | client/cmd/swarming/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698