Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for cputicks (0.11 sec)

  1. src/runtime/cputicks.go

    //go:build !arm && !arm64 && !mips64 && !mips64le && !mips && !mipsle && !wasm
    
    package runtime
    
    // careful: cputicks is not guaranteed to be monotonic! In particular, we have
    // noticed drift between cpus on certain os/arch combinations. See issue 8976.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 12:47:42 UTC 2023
    - 437 bytes
    - Viewed (0)
  2. src/runtime/tracetime.go

    //
    // Hitting this target resolution is easy in the nanotime case: just pick a
    // division of 64. In the cputicks case it's a bit more complex.
    //
    // For x86, on a 3 GHz machine, we'd want to divide by 3*64 to hit our target.
    // To keep the division operation efficient, we round that up to 4*64, or 256.
    // Given what cputicks represents, we use this on all other platforms except
    // for PowerPC.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/runtime/os_freebsd_arm64.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    //go:nosplit
    func cputicks() int64 {
    	// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 320 bytes
    - Viewed (0)
  4. src/runtime/os_windows_arm64.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "unsafe"
    
    //go:nosplit
    func cputicks() int64 {
    	var counter int64
    	stdcall1(_QueryPerformanceCounter, uintptr(unsafe.Pointer(&counter)))
    	return counter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 19 00:40:56 UTC 2021
    - 339 bytes
    - Viewed (0)
  5. src/runtime/os_openbsd_arm64.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 329 bytes
    - Viewed (0)
  6. src/runtime/os_openbsd_mips64.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 329 bytes
    - Viewed (0)
  7. src/runtime/badlinkname.go

    // See go.dev/issue/67401.
    
    // Notable members of the hall of shame include:
    //   - github.com/dgraph-io/ristretto
    //   - github.com/outcaste-io/ristretto
    //   - github.com/clubpay/ronykit
    //go:linkname cputicks
    
    // Notable members of the hall of shame include:
    //   - gvisor.dev/gvisor (from assembly)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 661 bytes
    - Viewed (0)
  8. src/runtime/os_openbsd_arm.go

    	if getncpu() > 1 && goarm < 7 {
    		print("runtime: this system has multiple CPUs and must use\n")
    		print("atomic synchronization instructions. Recompile using GOARM=7.\n")
    		exit(1)
    	}
    }
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 662 bytes
    - Viewed (0)
  9. src/runtime/os_linux_mips64x.go

    package runtime
    
    import "internal/cpu"
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	}
    }
    
    func osArchInit() {}
    
    //go:nosplit
    func cputicks() int64 {
    	// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    }
    
    const (
    	_SS_DISABLE  = 2
    	_NSIG        = 129
    	_SIG_BLOCK   = 1
    	_SIG_UNBLOCK = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 996 bytes
    - Viewed (0)
  10. src/runtime/os_darwin_arm64.go

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 329 bytes
    - Viewed (0)
Back to top