• Matthew Dempsky's avatar
    runtime: simplify CPU profiling code · 3c8a89da
    Matthew Dempsky authored
    This makes Go's CPU profiling code somewhat more idiomatic; e.g.,
    using := instead of forward declaring variables, using "int" for
    element counts instead of "uintptr", and slices instead of C-style
    pointer+length.  This makes the code easier to read and eliminates a
    lot of type conversion clutter.
    
    Additionally, in sigprof we can collect just maxCPUProfStack stack
    frames, as cpuprof won't use more than that anyway.
    
    Change-Id: I0235b5ae552191bcbb453b14add6d8c01381bd06
    Reviewed-on: https://go-review.googlesource.com/6072
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDmitry Vyukov <dvyukov@google.com>
    3c8a89da
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...