Hard to get a public test case (private code), but I noticed with go10, the 
profiler puts 99% flat time in time.now.  Did time.now change somehow?

(pprof) top1
Showing nodes accounting for 2.11mins, 99.90% of 2.11mins total
Dropped 26 nodes (cum <= 0.01mins)
Showing top 1 nodes out of 10
      flat  flat%   sum%        cum   cum%
  2.11mins 99.90% 99.90%   2.11mins 99.90%  time.now
(pprof) list time.now
Total: 2.11mins
ROUTINE ======================== time.now in 
/Users/jlindamo/sdk/go1.10beta1/src/runtime/sys_darwin_amd64.s
  2.11mins   2.11mins (flat, cum) 99.90% of Total
         .          .    303: MOVQ SP, DI
         .          .    304: MOVQ $0, SI
         .          .    305: MOVQ $0, DX  // required as of Sierra; Issue 
16570
         .          .    306: MOVL $(0x2000000+116), AX // gettimeofday
         .          .    307: SYSCALL
  2.11mins   2.11mins    308: CMPQ AX, $0
         .          .    309: JNE inreg
         .          .    310: MOVQ 0(SP), AX
         .          .    311: MOVL 8(SP), DX
         .          .    312:inreg:
         .          .    313: // sec is in AX, usec in DX


On Friday, December 22, 2017 at 9:35:15 PM UTC-8, Daniel Theophanes wrote:
>
> The beta is a normal release, not debug or no opt. File an issue, if 
> possible try to get a minimal repro case you can post.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to