code: function parseState(s) {
    switch (s) {
    case "": return Profile.CodeState.COMPILED;
    case "~": return Profile.CodeState.OPTIMIZABLE;
    case "*": return Profile.CodeState.OPTIMIZED;
    }
    throw new Error("unknown code state: " + s);
  }
docs: Parser for dynamic code optimization state.