Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(274)

Side by Side Diff: src/pkg/runtime/windows/386/signal.c

Issue 4306043: code review 4306043: runtime: cpu profiling support (Closed)
Patch Set: diff -r 777b478bba31 https://go.googlecode.com/hg Created 13 years, 12 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/runtime.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "runtime.h" 5 #include "runtime.h"
6 #include "defs.h" 6 #include "defs.h"
7 #include "os.h" 7 #include "os.h"
8 8
9 void 9 void
10 runtime·dumpregs(Context *r) 10 runtime·dumpregs(Context *r)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 if(runtime·gotraceback()){ 82 if(runtime·gotraceback()){
83 runtime·traceback((void*)r->Eip, (void*)r->Esp, 0, m->curg); 83 runtime·traceback((void*)r->Eip, (void*)r->Esp, 0, m->curg);
84 runtime·tracebackothers(m->curg); 84 runtime·tracebackothers(m->curg);
85 runtime·dumpregs(r); 85 runtime·dumpregs(r);
86 } 86 }
87 87
88 runtime·exit(2); 88 runtime·exit(2);
89 return 0; 89 return 0;
90 } 90 }
91
92 void
93 runtime·resetcpuprofiler(int32 hz)
94 {
95 // TODO: Enable profiling interrupts.
96 ········
97 m->profilehz = hz;
98 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b