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
59# pt_example=# \q59# pt_example=# \q
60#60#
61# An example of using the database is provided by the script61# 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.
63#63#
64# Tables:64# Tables:
65#65#
tools/perf/scripts/python/export-to-sqlite.py+1−1
@@ -40,7 +40,7 @@ import datetime · 39 unmodified lines
40# sqlite> .quit40# sqlite> .quit
41#41#
42# An example of using the database is provided by the script42# 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.
44#44#
45# The database structure is practically the same as created by the script45# The database structure is practically the same as created by the script
46# export-to-postgresql.py. Refer to that script for details. A notable46# 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
10# Following on from the example in the export scripts, a10# Following on from the example in the export scripts, a
11# call-graph can be displayed for the pt_example database like this:11# call-graph can be displayed for the pt_example database like this:
12#12#
13# python tools/perf/scripts/python/call-graph-from-sql.py pt_example13# python tools/perf/scripts/python/exported-sql-viewer.py pt_example
14#14#
15# Note that for PostgreSQL, this script supports connecting to remote databases15# Note that for PostgreSQL, this script supports connecting to remote databases
16# by setting hostname, port, username, password, and dbname e.g.16# by setting hostname, port, username, password, and dbname e.g.
17#17#
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"
19#19#
20# The result is a GUI window with a tree representing a context-sensitive20# The result is a GUI window with a tree representing a context-sensitive
21# call-graph. Expanding a couple of levels of the tree and adjusting column21# call-graph. Expanding a couple of levels of the tree and adjusting column
@@ -365,7 +365,7 @@ class DBRef(): · 343 unmodified lines
365 365
366def Main():366def Main():
367 if (len(sys.argv) < 2):367 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>"
369 raise Exception("Too few arguments")369 raise Exception("Too few arguments")
370 370
371 dbname = sys.argv[1]371 dbname = sys.argv[1]