Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
88740ad3
Commit
88740ad3
authored
Mar 07, 2000
by
simonmar
Browse files
[project @ 2000-03-07 11:53:12 by simonmar]
Remove duplicate prof_file variable. Heap profiling should work again.
parent
3f558e55
Changes
3
Hide whitespace changes
Inline
Side-by-side
ghc/rts/ProfHeap.c
View file @
88740ad3
/* -----------------------------------------------------------------------------
* $Id: ProfHeap.c,v 1.
3
2000/0
2/17 17:19:4
2 simonmar Exp $
* $Id: ProfHeap.c,v 1.
4
2000/0
3/07 11:53:1
2 simonmar Exp $
*
* (c) The GHC Team, 1998-
1999
* (c) The GHC Team, 1998-
2000
*
* Support for heap profiling
*
...
...
@@ -31,7 +31,6 @@ static void fprint_data(FILE *fp);
#endif
char
prof_filename
[
128
];
/* urk */
FILE
*
prof_file
;
#ifdef DEBUG_HEAP_PROF
void
initProfiling
(
void
)
...
...
ghc/rts/ProfRts.h
View file @
88740ad3
/* -----------------------------------------------------------------------------
* $Id: ProfRts.h,v 1.
8
2000/0
2/17 17:19:4
2 simonmar Exp $
* $Id: ProfRts.h,v 1.
9
2000/0
3/07 11:53:1
2 simonmar Exp $
*
* (c) The GHC Team, 1998-
1999
* (c) The GHC Team, 1998-
2000
*
* Support for profiling
*
...
...
@@ -10,6 +10,8 @@
#if defined(PROFILING) || defined(DEBUG)
void
initProfiling
(
void
);
void
endProfiling
(
void
);
extern
FILE
*
prof_file
;
#endif
#ifdef PROFILING
...
...
ghc/rts/Profiling.c
View file @
88740ad3
/* -----------------------------------------------------------------------------
* $Id: Profiling.c,v 1.1
4
2000/03/0
1
11:
09:05
simonmar Exp $
* $Id: Profiling.c,v 1.1
5
2000/03/0
7
11:
53:12
simonmar Exp $
*
* (c) The GHC Team, 1998-
1999
* (c) The GHC Team, 1998-
2000
*
* Support for profiling
*
...
...
@@ -51,7 +51,7 @@ static lnat total_alloc, total_prof_ticks;
/* Globals for opening the profiling log file
*/
static
char
*
prof_filename
;
/* prof report file name = <program>.prof */
static
FILE
*
prof_file
;
FILE
*
prof_file
;
/* The Current Cost Centre Stack (for attributing costs)
*/
...
...
@@ -224,7 +224,7 @@ initProfilingLogFile(void)
RtsFlags
.
CcFlags
.
doCostCentres
=
0
;
return
;
}
if
(
RtsFlags
.
CcFlags
.
doCostCentres
==
COST_CENTRES_XML
)
{
/* dump the time, and the profiling interval */
fprintf
(
prof_file
,
"
\"
%s
\"\n
"
,
time_str
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment