private void sortBy() {
        if (!measureCPU && !measureContention && !measureBytesAllocated || sortByStr.toLowerCase().startsWith("n")) {
            sortBy = SortBy.NAME;
        } else if (!measureCPU && !measureBytesAllocated || sortByStr.toLowerCase().contains("d")) {
            sortBy = SortBy.CONTENTION;
        } else if (!measureCPU || sortByStr.toLowerCase().startsWith("a")) {
            sortBy = SortBy.ALLOC_BYTES;
        } else {
            sortBy = SortBy.CPU;
        }
    }