- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for cputicks (0.08 sec)
-
src/runtime/mprof.go
} if rate > 0 && int64(cheaprand())%rate == 0 { lt.tickStart = cputicks() } } func (lt *lockTimer) end() { gp := getg() if lt.timeStart != 0 { nowTime := nanotime() gp.m.mLockProfile.waitTime.Add((nowTime - lt.timeStart) * lt.timeRate) } if lt.tickStart != 0 { nowTick := cputicks() gp.m.mLockProfile.recordLock(nowTick-lt.tickStart, lt.lock) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0) -
src/runtime/asm_amd64.s
get_tls(CX) MOVQ g(CX), AX CMPQ (g_stack+stack_hi)(AX), SP JHI 2(PC) CALL runtime·abort(SB) CMPQ SP, (g_stack+stack_lo)(AX) JHI 2(PC) CALL runtime·abort(SB) RET // func cputicks() int64 TEXT runtime·cputicks(SB),NOSPLIT,$0-0 CMPB internal∕cpu·X86+const_offsetX86HasRDTSCP(SB), $1 JNE fences // Instruction stream serializing RDTSCP is supported.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 60.4K bytes - Viewed (0)