Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
87915b65
Commit
87915b65
authored
Feb 07, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: introduce MemStatsType
R=ken2 CC=golang-dev
https://golang.org/cl/204061
parent
ebf32c58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/pkg/runtime/extern.go
src/pkg/runtime/extern.go
+5
-3
No files found.
src/pkg/runtime/extern.go
View file @
87915b65
...
...
@@ -71,9 +71,7 @@ func Signame(sig int32) string
// be called during initialization.
func
Siginit
()
// MemStats holds statistics about the memory system.
// The statistics are only approximate, as they are not interlocked on update.
var
MemStats
struct
{
type
MemStatsType
struct
{
Alloc
uint64
Sys
uint64
Stacks
uint64
...
...
@@ -84,6 +82,10 @@ var MemStats struct {
EnableGC
bool
}
// MemStats holds statistics about the memory system.
// The statistics are only approximate, as they are not interlocked on update.
var
MemStats
MemStatsType
// Alloc allocates a block of the given size.
// FOR TESTING AND DEBUGGING ONLY.
func
Alloc
(
uintptr
)
*
byte
...
...
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