private static string GetDisassembly(MethodInfo method, string options) { try { var result = BurstCompilerService.GetDisassembly(method, options); if (result.IndexOf('\t') >= 0) { result = result.Replace("\t", " "); } // Workaround to remove timings if (result.Contains("Burst timings")) { var index = result.IndexOf("While compiling", StringComparison.Ordinal); if (index > 0) { result = result.Substring(index); } } return(result); } catch (Exception e) { return("Failed to compile:\n" + e.Message); } }
private static string GetDisassembly(MethodInfo method, string options) { try { var result = BurstCompilerService.GetDisassembly(method, options); return(TabsToSpaces(result)); } catch (Exception e) { return("Failed to compile:\n" + e.Message); } }