Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC info #69

Closed
arakov opened this issue Jul 28, 2015 · 1 comment
Closed

GC info #69

arakov opened this issue Jul 28, 2015 · 1 comment
Assignees
Labels
API feature request New ELENA API routine
Milestone

Comments

@arakov
Copy link
Member

arakov commented Jul 28, 2015

Add possibility to view gc statistics

@arakov arakov added this to the ELENA 2.0.0 milestone Aug 9, 2015
@arakov arakov modified the milestones: ELENA 3.2.1, ELENA 3.3 Nov 15, 2017
@arakov arakov modified the milestones: ELENA 3.3, ELENA 3.4 Jun 12, 2018
@arakov arakov added this to the ELENA 5.0 milestone Nov 25, 2019
@arakov arakov added API feature request New ELENA API routine and removed enhancement labels Feb 26, 2020
@arakov arakov modified the milestones: ELENA 5.0, ELENA 6.0 Jun 29, 2020
@arakov arakov self-assigned this May 29, 2024
@arakov
Copy link
Member Author

arakov commented May 29, 2024

The following code can be used to retrieve GC statistics:

import extensions;
import extensions'runtime;

public program() 
{
   console.printLine("before:");
   SystemMonitor.printMemoryStatistics();

   var n := 0;
   while (n < 100000) {
      n := n + 1;
   };
   
   console.printLine("after:");
   SystemMonitor.printMemoryStatistics();
}

SystemMonitor.printMemoryStatistics will print the info:

before:
=== Memory usage statistics ===
yg allocated:      180
yg free:           14E80
mg allocated:      0
mg free:           2A000
perm allocated:    0
perm free:         0
minor collections: 0
major collections: 0
===============================
after:
=== Memory usage statistics ===
yg allocated:      FF90
yg free:           5070
mg allocated:      0
mg free:           2A000
perm allocated:    0
perm free:         0
minor collections: 12
major collections: 0
===============================

arakov added a commit that referenced this issue May 29, 2024
@arakov arakov closed this as completed May 29, 2024
arakov added a commit that referenced this issue May 31, 2024
* #590 : implementing functional test
* #620 : introducing out ref variable
* refactoring code - using out ref parameters
* warn if out variable is not assigned in the method
* [FIXED] ?. operator
* working on ide for linux
* [ADDED] #655 : new option to keep output terminal after the program ends
* [FIXED] retrieving a source for the reference modules
* [ADDED] auto-recompile option
* [FIXED] MTA : critical exception handler
* [FIXED] recent list - only 9 elements must be in the list
* [ADDED]#69 : GC statistics
* [ADDED] support project collection file
* [FIXED] nil cannot be returned for nil object - use default instead
* #650 : Calling a named constructor from an implicit default one

---------

Co-authored-by: Alex <alex@Ubuntu.myguest.virtualbox.org>
@arakov arakov mentioned this issue Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API feature request New ELENA API routine
Projects
None yet
Development

No branches or pull requests

1 participant