w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • References
  • Ruby on Rails
  • Ruby
  • Classes
  • GC
GC:
  • GC::Profiler


×
Type:
Module

The GC module provides an interface to Ruby's mark and sweep garbage collection mechanism.

Some of the underlying methods are also available via the ObjectSpace module.

You may obtain information about the operation of the GC through GC::Profiler.

stress=
  • References/Ruby on Rails/Ruby/Classes/GC

GC.stress = bool â bool Class Public methods Updates the

2025-01-10 15:47:30
disable
  • References/Ruby on Rails/Ruby/Classes/GC/GC::Profiler

GC::Profiler.disable â nil Class Public methods Stops the

2025-01-10 15:47:30
stress
  • References/Ruby on Rails/Ruby/Classes/GC

GC.stress â true or false Class Public methods Returns current status of

2025-01-10 15:47:30
garbage_collect
  • References/Ruby on Rails/Ruby/Classes/GC

gc.garbage_collect â nilObjectSpace.garbage_collect â nil Instance Public methods

2025-01-10 15:47:30
enabled?
  • References/Ruby on Rails/Ruby/Classes/GC/GC::Profiler

GC::Profiler.enabled? â true or false Class Public methods The current

2025-01-10 15:47:30
report
  • References/Ruby on Rails/Ruby/Classes/GC/GC::Profiler

GC::Profiler.reportGC::Profiler.report(io) Class Public methods Writes

2025-01-10 15:47:30
enable
  • References/Ruby on Rails/Ruby/Classes/GC

GC.enable â true or false Class Public methods Enables garbage collection

2025-01-10 15:47:30
malloc_allocations
  • References/Ruby on Rails/Ruby/Classes/GC

GC.malloc_allocations â Integer Class Public methods Returns the number of

2025-01-10 15:47:30

Page 2 of 2

|< < Prev 1 2 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions