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,322
Issues
4,322
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
357
Merge Requests
357
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
5fb52815
Commit
5fb52815
authored
Dec 07, 2009
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove global 'total_allocated', seems to be the same as 'GC_tot_alloc'
parent
e33f8e0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
6 deletions
+1
-6
rts/Stats.c
rts/Stats.c
+1
-1
rts/sm/Storage.c
rts/sm/Storage.c
+0
-3
rts/sm/Storage.h
rts/sm/Storage.h
+0
-2
No files found.
rts/Stats.c
View file @
5fb52815
...
...
@@ -813,7 +813,7 @@ statDescribeGens(void)
-------------------------------------------------------------------------- */
extern
HsInt64
getAllocations
(
void
)
{
return
(
HsInt64
)
total_allocated
*
sizeof
(
W_
);
}
{
return
(
HsInt64
)
GC_tot_alloc
*
sizeof
(
W_
);
}
/* -----------------------------------------------------------------------------
Dumping stuff in the stats file, or via the debug message interface
...
...
rts/sm/Storage.c
View file @
5fb52815
...
...
@@ -49,8 +49,6 @@ generation *generations = NULL; /* all the generations */
generation
*
g0
=
NULL
;
/* generation 0, for convenience */
generation
*
oldest_gen
=
NULL
;
/* oldest generation, for convenience */
ullong
total_allocated
=
0
;
/* total memory allocated during run */
nursery
*
nurseries
=
NULL
;
/* array of nurseries, size == n_capabilities */
#ifdef THREADED_RTS
...
...
@@ -789,7 +787,6 @@ calcAllocated( void )
allocated
+=
g0
->
n_new_large_blocks
*
BLOCK_SIZE_W
;
total_allocated
+=
allocated
;
return
allocated
;
}
...
...
rts/sm/Storage.h
View file @
5fb52815
...
...
@@ -132,8 +132,6 @@ lnat countNurseryBlocks ( void );
Stats 'n' DEBUG stuff
-------------------------------------------------------------------------- */
extern
ullong
total_allocated
;
lnat
calcAllocated
(
void
);
lnat
calcLiveBlocks
(
void
);
lnat
calcLiveWords
(
void
);
...
...
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