summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-01-18Process keyboard inputrustMark Wong
Currently only process 'q' for quitting.
2021-01-18Clear lines after updatingMark Wong
The amount of data written to a line may be less than what was previously displayed, so clear the rest of the line after updating it. Similarly, clear the rest of the screen after the last line is updated. This also requires the refreshing of the entire screen to be in a particular order.
2021-01-07Create a macro for formatting the process linesMark Wong
Also use the macro for the header to the process data.
2021-01-07Create separate functions for displaying each componentMark Wong
2021-01-07Add function to get cpu statsMark Wong
2021-01-07Add file for getting operating system statisticsMark Wong
Current only provides a function to read the system load average.
2021-01-07PostgreSQL specific moduleMark Wong
Move functions and variables specific to querying PostgreSQL into its own module.
2021-01-07Use termion for implementing TTYMark Wong
This change shows how to table control of the TTY (raw mode), position the cursor, and hide/show the cursor.
2021-01-07Use postgres crate for querying the databaseMark Wong
This continues the proof-of-concept. A 100% rust solution reduces dependencies from non-rust libraries.
2021-01-07Use clap for argument parsingMark Wong
2021-01-07Create new rust projectMark Wong
2021-01-07Fix rules to use -Wall on Debug buildsMark Wong
2020-10-08Update for v4.0.0 releasev4.0.0Mark Wong
2020-10-07Remove code using obsolete termioMark Wong
Expect to use termios.h.
2020-08-29linux: Fix heading spacing for top i/oMark Wong
Follow up to f3a30cd1b356b37e44f8b2c5bb1a564a906a3dfd.
2020-08-06Correct pg_systat name in HISTORYMark Wong
2020-08-05Update for v4.0.0beta1 releasev4.0.0-beta1Mark Wong
2020-08-05Update AppImage notesMark Wong
Configure PostgreSQL using --with-openssl flag to build libpq library such that pg_top can use SSL connections from the AppImage.
2020-08-05Make room for longer pids in a few more locationsMark Wong
Follow up to f3a30cd1b356b37e44f8b2c5bb1a564a906a3dfd.
2020-08-05linux: define _GNU_SOURCE for reallocarray()Mark Wong
Some Linux distros may need _GNU_SOURCE explicitly defined in order to use reallocarray() in. Ubuntu 18.01 is one of them.
2020-07-31Fix malformed xmlMark Wong
2020-07-30Update for v4.0.0alpha6 releasev4.0.0-alpha6Mark Wong
2020-07-30Note FreeBSD version in historyMark Wong
2020-07-30m_openbsd: multiple updatesMark Wong
* Updated on OpenBSD 6.7 * add replication view * update activity view * Username column now reflects the Postgres role. * State column now reflects Postgres backend state. * Transaction (XTIME) and query (QTIME) execution time has been added. * Added LOCKS column showing number of locks acquired per process. * Removed column relating to priority and nice.
2020-07-26Handle longer pids (64-bit) on LinuxPeter Hicks
2020-04-16m_freebsd: add support for displaying io statsMark Wong
2020-04-16Set up freebsd for top io stats displayMark Wong
Set of various machines as we go since displaying i/o stats per process is going to be operating system dependent.
2020-04-16Add extra error handling to i_process()Mark Wong
2020-04-11m_freebsd: add replication view functionalityMark Wong
2020-04-11Force all machines to handle replication viewMark Wong
2020-04-11Handle NULL header gracefullyMark Wong
2020-04-11m_freebsd: update activity viewMark Wong
Removed column relating threads, priority and nice. These tends not necessarily be of interest to Postgres as a processed base application that is generally not niced or prioritized. Username column now reflects the Postgres role. State column now reflects Postgres backend state. Transaction (XTIME) and query (QTIME) execution time has been added. Added LOCKS column showing number of locks acquired per process.
2020-04-10Force all machines to conform to updated get_process_info()Mark Wong
The changes that were previously restricted for Linux should be applied to all machines. There shouldn't be any reason that the updates can't be applied to some degree on all platform.
2020-04-10m_freebsd: update sprintf with snprintfMark Wong
2020-04-10Use enum for pg_stat_replication queryMark Wong
This will hopefully make updating various machine files easier.
2020-04-10Use enum for pg_stat_activity queryMark Wong
This will hopefully make updating various machine files easier.
2020-04-10Minimal fixes to compile on FreeBSD 12.1Mark Wong
2020-04-08Update for v4.0.0alpha5 releasev4.0.0-alpha5Mark Wong
2020-04-08Change display logic to show any non-negative valuesMark Wong
Previously hid anything that was 0, which would display anything that was negative. I think it's useful to see values that are 0 and then to use negative values to indicate that a statistic isn't available.
2020-04-08Re-implement swap activity for linuxMark Wong
Redid the bulk of that changes in 7b98b287f95fed34719e0bd30a1e77a34ecd2d26 to conform with the infrastructure already in place.
2020-04-07Update for v4.0.0alpha4 releasev4.0.0-alpha4Mark Wong
2020-04-07Update README with additional featuresMark Wong
2020-04-07Fix display of locks help by processMark Wong
Add a column for the schema name and index name. | database | schema | table | index | type | granted --+----------+--------+-------+--------+-----------------+-------- 1 | mark | public | | a_pkey | AccessShareLock | t 2 | mark | public | a | | AccessShareLock | t Previously the schema was not being shown and tables and indexes were being shown in the same column.
2020-04-06Convert man pages to rstMark Wong
2020-04-06Convert various text files to rstMark Wong
2020-04-05Fix coloring of CPU statesMark Wong
The update and initialization functions were not coloring the same parts of the text.
2020-04-05Fix name of env variable for setting colorsMark Wong
2020-04-04Fix command line handling of display countsMark Wong
With minor updates in usage() output to match the command line text with the options test.
2020-04-04Add missing command line argument descriptionsMark Wong
The usage() function was missing -R and -X.
2020-04-04Remove toggle for displaying cumulative vs differential statsMark Wong
I don't think it make sense to show the raw cumulative numbers from the operative system, except for debugging. It should be more meaningful to see the rate of change.