| 290 | } |
| 291 | |
| 292 | void PrintHelp() { |
| 293 | printf( |
| 294 | "See https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/" |
| 295 | "README.md for profiler tutorial.\n"); |
| 296 | printf( |
| 297 | "See https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/" |
| 298 | "g3doc/command_line.md for command line tool tutorial.\n"); |
| 299 | printf( |
| 300 | "profiler --profile_path=<ProfileProto binary file> # required\n" |
| 301 | "\nOr:\n\n" |
| 302 | "profiler --graph_path=<GraphDef proto file> " |
| 303 | "# Contains model graph info (no needed for eager execution)\n" |
| 304 | " --run_meta_path=<RunMetadata proto file> " |
| 305 | "# Contains runtime info. Optional.\n" |
| 306 | " --run_log_path=<OpLogProto proto file> " |
| 307 | "# Contains extra source code, flops, custom type info. Optional\n\n"); |
| 308 | printf( |
| 309 | "\nTo skip interactive mode, append one of the following commands:\n" |
| 310 | " scope: Organize profiles based on name scopes.\n" |
| 311 | " graph: Organize profiles based on graph node input/output.\n" |
| 312 | " op: Organize profiles based on operation type.\n" |
| 313 | " code: Organize profiles based on python codes (need op_log_path).\n" |
| 314 | " advise: Auto-profile and advise. (experimental)\n" |
| 315 | " set: Set options that will be default for follow up commands.\n" |
| 316 | " help: Show helps.\n"); |
| 317 | fflush(stdout); |
| 318 | } |
| 319 | |
| 320 | static const char* const kTotalMicrosHelp = |
| 321 | "total execution time: Sum of accelerator execution time and cpu execution " |