mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime/pprof: test multithreaded profile, remove OS X workarounds
This means that pprof will no longer report profiles on OS X. That's unfortunate, but the profiles were often wrong and, worse, it was difficult to tell whether the profile was wrong or not. The workarounds were making the scheduler more complex, possibly caused a deadlock (see issue 5519), and did not actually deliver reliable results. It may be possible for adventurous users to apply a patch to their kernels to get working results, or perhaps having no results will encourage someone to do the work of creating a profiling thread like on Windows. Issue 6047 has details. Fixes #5519. Fixes #6047. R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/12429045
This commit is contained in:
parent
d8e27db395
commit
d3066e47b1
15 changed files with 68 additions and 136 deletions
|
|
@ -248,12 +248,6 @@ runtime·memlimit(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
runtime·setprof(bool on)
|
||||
{
|
||||
USED(on);
|
||||
}
|
||||
|
||||
extern void runtime·sigtramp(void);
|
||||
|
||||
typedef struct sigaction {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue