# 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:
- When this flag is provided, yc-360 script will pass this argument value to the .NET command
- The .NET command will use this value for collection garbage collection details.
- The YC-360 script will wait until the Garbage collection is finished based on the duration.
- 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.
- If this flag skipped, then the .NET command will capture GC data for 30 seconds (this is the default behavior)
- This flag is configured to be used in the WINDOWS operating system
- 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