# gcDuration

This flag checks the duration for which the garbage collection to be captured. The value is in SECONDS

Type: INTEGER

Default: 30

How it work internally:

  1. When this flag is provided, yc-360 script will pass this argument value to the .NET command
  2. The .NET command will use this value for collection garbage collection details.
  3. The YC-360 script will wait until the Garbage collection is finished based on the duration.
  4. If the duration is mentioned as 60, then the YC-360 script will wait for 60 seconds until the .NET command is finished the capturing.
  5. If this flag skipped, then the .NET command will capture GC data for 30 seconds (this is the default behavior)
  6. This flag is configured to be used in the WINDOWS operating system
  7. This flag will work only from the command line (CLI)

Example:(CLI)

Run yc.exe to start capture the .NET artifacts from a CLI

yc.exe -onlyCapture -p 22534 -gcDuration=60
1