@Override
    public void freeze() {
        if (isFrozen()) return;
        queryProfileTypeRegistry.freeze();
        for (QueryProfile queryProfile : allComponents())
            queryProfile.freeze();
    }
Freezes this, and all owned query profiles and query profile types
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileRegistry.java