History

perf scripts python: call-graph-from-sql.py: Rename to exported-sql-viewer.py

Additional reports will be added to the script so rename to reflect the more general purpose.

Adrian Hunter committed 8 years ago

Commit 031c2a01 parent 341e73c4 files · +6 −6Browse files

Showing the changes to tools/perf/scripts/python (3 of 4 files). Show all

Unified · Split

3 files
  1. tools/perf/scripts/python/export-to-postgresql.py +1 −1
  2. tools/perf/scripts/python/export-to-sqlite.py +1 −1
  3. tools/perf/scripts/python/exported-sql-viewer.py +3 −3
tools/perf/scripts/python/export-to-postgresql.py+1−1
@@ -59,7 +59,7 @@ import datetime · 58 unmodified lines
5959 # pt_example=# \q
6060 #
6161 # An example of using the database is provided by the script
62−# call-graph-from-sql.py. Refer to that script for details.
62+# exported-sql-viewer.py. Refer to that script for details.
6363 #
6464 # Tables:
6565 #
tools/perf/scripts/python/export-to-sqlite.py+1−1
@@ -40,7 +40,7 @@ import datetime · 39 unmodified lines
4040 # sqlite> .quit
4141 #
4242 # An example of using the database is provided by the script
43−# call-graph-from-sql.py. Refer to that script for details.
43+# exported-sql-viewer.py. Refer to that script for details.
4444 #
4545 # The database structure is practically the same as created by the script
4646 # export-to-postgresql.py. Refer to that script for details. A notable
tools/perf/scripts/python/exported-sql-viewer.pyrenamed from tools/perf/scripts/python/call-graph-from-sql.py+3−3
@@ -10,12 +10,12 @@ · 9 unmodified lines
1010 # Following on from the example in the export scripts, a
1111 # call-graph can be displayed for the pt_example database like this:
1212 #
13−# python tools/perf/scripts/python/call-graph-from-sql.py pt_example
13+# python tools/perf/scripts/python/exported-sql-viewer.py pt_example
1414 #
1515 # Note that for PostgreSQL, this script supports connecting to remote databases
1616 # by setting hostname, port, username, password, and dbname e.g.
1717 #
18−# python tools/perf/scripts/python/call-graph-from-sql.py "hostname=myhost username=myuser password=mypassword dbname=pt_example"
18+# python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password=mypassword dbname=pt_example"
1919 #
2020 # The result is a GUI window with a tree representing a context-sensitive
2121 # call-graph. Expanding a couple of levels of the tree and adjusting column
@@ -365,7 +365,7 @@ class DBRef(): · 343 unmodified lines
365365
366366 def Main():
367367 if (len(sys.argv) < 2):
368− print >> sys.stderr, "Usage is: call-graph-from-sql.py <database name>"
368+ print >> sys.stderr, "Usage is: exported-sql-viewer.py <database name>"
369369 raise Exception("Too few arguments")
370370
371371 dbname = sys.argv[1]