protected GCEventType getGCEventType()

in analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/parser/UnifiedG1GCLogParser.java [210:255]


    protected GCEventType getGCEventType(String eventString) {
        switch (eventString) {
            case "Pre Evacuate Collection Set":
                return G1_COLLECT_PRE_EVACUATION;
            case "Merge Heap Roots":
                return G1_MERGE_HEAP_ROOTS;
            case "Evacuate Collection Set":
                return G1_COLLECT_EVACUATION;
            case "Post Evacuate Collection Set":
                return G1_COLLECT_POST_EVACUATION;
            case "Other":
                return G1_COLLECT_OTHER;
            case "Concurrent Clear Claimed Marks":
                return G1_CONCURRENT_CLEAR_CLAIMED_MARKS;
            case "Concurrent Scan Root Regions":
                return G1_CONCURRENT_SCAN_ROOT_REGIONS;
            case "Concurrent Mark From Roots":
                return G1_CONCURRENT_MARK_FROM_ROOTS;
            case "Concurrent Mark":
                return G1_CONCURRENT_MARK;
            case "Concurrent Preclean":
                return G1_CONCURRENT_PRECLEAN;
            case "Pause Remark":
                return G1_REMARK;
            case "Concurrent Rebuild Remembered Sets":
                return G1_CONCURRENT_REBUILD_REMEMBERED_SETS;
            case "Pause Cleanup":
                return G1_PAUSE_CLEANUP;
            case "Concurrent Cleanup for Next Mark":
                return G1_CONCURRENT_CLEANUP_FOR_NEXT_MARK;
            case "Phase 1: Mark live objects":
                return G1_MARK_LIVE_OBJECTS;
            case "Phase 2: Prepare for compaction":
                return G1_PREPARE_FOR_COMPACTION;
            case "Phase 3: Adjust pointers":
                return G1_ADJUST_POINTERS;
            case "Phase 4: Compact heap":
                return G1_COMPACT_HEAP;
            case "Concurrent Mark Abort":
                return G1_CONCURRENT_MARK_ABORT;
            case "Concurrent Mark Reset For Overflow":
                return G1_CONCURRENT_MARK_RESET_FOR_OVERFLOW;
            default:
                throw new ShouldNotReachHereException();
        }
    }