Add git version to trace processor

Also bump the window size to 180 seconds

Change-Id: I006b1cfb6f52454349222ee028aad2fcf60a3272
diff --git a/src/trace_processor/trace_processor_shell.cc b/src/trace_processor/trace_processor_shell.cc
index 58cfff7..ce8c481 100644
--- a/src/trace_processor/trace_processor_shell.cc
+++ b/src/trace_processor/trace_processor_shell.cc
@@ -43,6 +43,9 @@
 #include <linenoise.h>
 #include <pwd.h>
 #include <sys/types.h>
+#include "perfetto_version.gen.h"
+#else
+#define PERFETTO_GET_GIT_REVISION() "unknown"
 #endif
 
 #if PERFETTO_HAS_SIGNAL_H()
@@ -432,6 +435,10 @@
   const char* sqlite_file_path = nullptr;
   bool launch_shell = true;
   for (int i = 1; i < argc; i++) {
+    if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--version") == 0) {
+      printf("%s\n", PERFETTO_GET_GIT_REVISION());
+      exit(0);
+    }
     if (strcmp(argv[i], "-d") == 0) {
       EnableSQLiteVtableDebugging();
       continue;