Threads-Charts Usage

Installation and Usage

First of all, Threads-Charts does not "install" anything and you don't need root privileges to use it. It just needs 3 files - Makefile, threads_test.c, make_output - in the same directory with write permission.
Other prerequisites are a C-complier (like gcc), sed, awk, paste and cut, which are all installed on any Unix (or Unixlike System). If you want to view the gnuplot file after the program has finished, you also need Gnuplot.

The steps needed:

The files Threads-Charts writes to your directory

As said above, Threads-Charts saves the result to two files, a gnuplot file and a CSV file.

The name of the gnuplot file is like the following example: Linux_i686_ono-sendai_gnuplot.gp where "Linux" is the name of your OS (the output of "uname"), "i686" the hardware type (the output of "uname -m") and "ono-sendai" is the hostname of your system (the output of "hostname"). To view this file, just input (of course you should change the filename):

Term:
$ cd INSTALL_DIR
$ cd threads-charts-XXX
$ gnuplot -persist Linux_i686_ono-sendai_gnuplot.gp

The CSV file is a file any spreadsheet app can open (but it may have problems with the semicolons as field separators, but they are necessary because in some coutries the comma is used as the decimal separator), for example OpenOffice Calc or Gnumeric or Kspread or MS Excel.
The CSV file is named in a similar manner as the gnuplot file, like this: Linux_i686_ono-sendai.csvwhere "Linux" is the name of your OS (the output of "uname"), "i686" the hardware type (the output of "uname -m") and "ono-sendai" is the hostname of your system (the output of "hostname"). To view this file, just open it with your spreadsheet app of your favour.

You can download result files from different CPUs and OSes from here

Troubleshooting

The executable doesn't compile

Threads-Charts tries to use the native compiler for each OS, if you don't have it installed (most of them are quite expensive) you can use GCC to compile the executable, but must do the two steps for yourself then.

Term:
$ cd INSTALL_DIR
$ cd threads-charts-XXX
$ make linux_gcc $ make output
You can use "make linux_gcc" for all OSes with gcc installed except Irix, you must use "make irix_gcc" there.

If your OS isn't recognized (so far AIX, FreeBSD, HP-UX, Irix, Linux, NetBSD, OpenBSD, Solaris and True64 are) and you have gcc installed you should try

Term:
$ cd INSTALL_DIR
$ cd threads-charts-XXX
$ make linux_gcc $ make output

I get no graph after the programm has finished

You probably don't have gnuplot installed, install it.
If you know that you have gnuplot installed on your sysytem, try

Term:
$ cd INSTALL_DIR
$ cd threads-charts-XXX
$ gnuplot -persist Linux_i686_ono-sendai_gnuplot.gp
Change the filename to your gnuplot file, it has a "_gnuplot.gp" at the end, and "Linux" is your OS name (the output of "uname"), "i686" is the hardware type (the output of "uname -m") and "ono-sendai" is your hostname (the output of "hostname").
If you don't have such a *_gnuplot.gp file, the script make_output failed (if you also don't have a file named threads_test, the compilation failed).

When loading the CSV file, i don't get separated columns, all 5 results are in one field

Change the semicolons in the CSV file to colons.