Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for userTime (0.14 sec)

  1. src/os/exec.go

    // Sending [Interrupt] on Windows is not implemented.
    func (p *Process) Signal(sig Signal) error {
    	return p.signal(sig)
    }
    
    // UserTime returns the user CPU time of the exited process and its children.
    func (p *ProcessState) UserTime() time.Duration {
    	return p.userTime()
    }
    
    // SystemTime returns the system CPU time of the exited process and its children.
    func (p *ProcessState) SystemTime() time.Duration {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. src/runtime/mstats.go

    	GCTotalTime     int64
    
    	ScavengeAssistTime int64 // background scavenger
    	ScavengeBgTime     int64 // scavenge assists
    	ScavengeTotalTime  int64
    
    	IdleTime int64 // Time Ps spent in _Pidle.
    	UserTime int64 // Time Ps spent in _Prunning or _Psyscall that's not any of the above.
    
    	TotalTime int64 // GOMAXPROCS * (monotonic wall clock time elapsed)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  3. src/runtime/metrics.go

    		},
    		"/cpu/classes/user:cpu-seconds": {
    			deps: makeStatDepSet(cpuStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindFloat64
    				out.scalar = float64bits(nsToSec(in.cpuStats.UserTime))
    			},
    		},
    		"/gc/cycles/automatic:gc-cycles": {
    			deps: makeStatDepSet(sysStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindUint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/shell.go

    	err = cmd.Run()
    	if a != nil && a.json != nil {
    		aj := a.json
    		aj.Cmd = append(aj.Cmd, joinUnambiguously(cmdline))
    		aj.CmdReal += time.Since(start)
    		if ps := cmd.ProcessState; ps != nil {
    			aj.CmdUser += ps.UserTime()
    			aj.CmdSys += ps.SystemTime()
    		}
    	}
    
    	// err can be something like 'exit status 1'.
    	// Add information about what program was running.
    	// Note that if buf.Bytes() is non-empty, the caller usually
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. src/runtime/metrics_test.go

    		t.Errorf("manually computed total does not match ScavengeTotalTime: %d cpu-ns vs. %d cpu-ns", scavTotal, stats.ScavengeTotalTime)
    	}
    	total := gcTotal + scavTotal + stats.IdleTime + stats.UserTime
    	if total != stats.TotalTime {
    		t.Errorf("manually computed overall total does not match TotalTime: %d cpu-ns vs. %d cpu-ns", total, stats.TotalTime)
    	}
    	if total == 0 {
    		t.Error("total time is zero")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  6. plugin/pkg/admission/gc/gc_admission_test.go

    )
    
    type fakeAuthorizer struct{}
    
    func (fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	username := a.GetUser().GetName()
    
    	if username == "non-deleter" {
    		if a.GetVerb() == "delete" {
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    		if a.GetVerb() == "update" && a.GetSubresource() == "finalizers" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. tests/test_security_oauth2.py

            }
        }
    )
    
    
    class User(BaseModel):
        username: str
    
    
    # Here we use string annotations to test them
    def get_current_user(oauth_header: "str" = Security(reusable_oauth2)):
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    # Here we use string annotations to test them
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. tests/test_security_oauth2_optional_description.py

            }
        },
        description="OAuth2 security scheme",
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tests/test_security_oauth2_optional.py

            }
        },
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. pkg/kubeapiserver/options/authentication_test.go

    		name         string
    		args         []string
    		expectConfig kubeauthenticator.Config
    	}{
    		{
    			name: "username prefix is '-'",
    			args: []string{
    				"--oidc-issuer-url=https://testIssuerURL",
    				"--oidc-client-id=testClientID",
    				"--oidc-username-claim=sub",
    				"--oidc-username-prefix=-",
    				"--oidc-signing-algs=RS256",
    				"--oidc-required-claim=foo=bar",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
Back to top