1syntax = "proto3"; 2 3package tensorflow; 4option cc_enable_arenas = true; 5option java_outer_classname = "GraphDebugInfoProtos"; 6option java_multiple_files = true; 7option java_package = "org.tensorflow.framework"; 8 9message GraphDebugInfo { 10 // This represents a file/line location in the source code. 11 message FileLineCol { 12 // File name index, which can be used to retrive the file name string from 13 // `files`. The value should be between 0 and (len(files)-1) 14 int32 file_index = 1; 15 16 // Line number in the file. 17 int32 line = 2; 18 19 // Col number in the file line. 20 int32 col = 3; 21 22 // Name of function contains the file line. 23 string func = 4; 24 25 // Source code contained in this file line. 26 string code = 5; 27 } 28 29 // This represents a stack trace which is a ordered list of `FileLineCol`. 30 message StackTrace { 31 // Each line in the stack trace. 32 repeated FileLineCol file_line_cols = 1; 33 } 34 35 // This stores all the source code file names and can be indexed by the 36 // `file_index`. 37 repeated string files = 1; 38 39 // This maps a node name to a stack trace in the source code. 40 map<string, StackTrace> traces = 2; 41} 42