Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,332
Issues
4,332
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
370
Merge Requests
370
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
68d65b1e
Commit
68d65b1e
authored
Nov 27, 2001
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2001-11-27 16:35:57 by simonmar]
Fix thinko. Timing stats should add up properly again.
parent
cbb4515e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ghc/rts/Stats.c
ghc/rts/Stats.c
+5
-4
No files found.
ghc/rts/Stats.c
View file @
68d65b1e
/* -----------------------------------------------------------------------------
* $Id: Stats.c,v 1.
39 2001/11/26 16:54:22
simonmar Exp $
* $Id: Stats.c,v 1.
40 2001/11/27 16:35:57
simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -106,7 +106,7 @@ static TICK_TYPE HCe_start_time, HCe_tot_time = 0; // heap census prof elap ti
#endif
#ifdef PROFILING
#define PROF_VAL(x)
x
#define PROF_VAL(x)
(x)
#else
#define PROF_VAL(x) 0
#endif
...
...
@@ -354,9 +354,10 @@ stat_startExit(void)
{
getTimes
();
MutElapsedStamp
=
CurrentElapsedTime
;
MutElapsedTime
=
CurrentElapsedTime
-
GCe_tot_time
-
InitElapsedStamp
;
MutElapsedTime
=
CurrentElapsedTime
-
GCe_tot_time
-
PROF_VAL
(
RPe_tot_time
+
HCe_tot_time
)
-
InitElapsedStamp
;
if
(
MutElapsedTime
<
0
)
{
MutElapsedTime
=
0
;
}
/* sometimes -0.00 */
/* for SMP, we don't know the mutator time yet, we have to inspect
* all the running threads to find out, and they haven't stopped
* yet. So we just timestamp MutUserTime at this point so we can
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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