Download TAU User Guide - Computer and Information Science
Transcript
Database Schema trial INT NOT NULL, /* name of the metric */ name VARCHAR NOT NULL, /* if this metric is derived by one of the tools */ derived BOOLEAN NOT NULL DEFAULT FALSE, FOREIGN KEY(trial) REFERENCES trial(id) ON DELETE NO ACTION ON UPDATE NO ACTION ); /* timers are timers, capturing some interval value. For callpath or phase profiles, the parent refers to the calling function or phase. */ CREATE TABLE timer ( id SERIAL NOT NULL PRIMARY KEY, /* trial this value belongs to */ trial INT NOT NULL, /* name of the timer */ name VARCHAR NOT NULL, /* short name of the timer - without source or parameter info */ short_name VARCHAR NOT NULL, /* filename */ source_file VARCHAR, /* line number of the start of the block of code */ line_number INT, /* line number of the end of the block of code */ line_number_end INT, /* column number of the start of the block of code */ column_number INT, /* column number of the end of the block of code */ column_number_end INT, FOREIGN KEY(trial) REFERENCES trial(id) ON DELETE NO ACTION ON UPDATE NO ACTION ); /* timer index on the trial and name columns */ CREATE INDEX timer_trial_index on timer (trial, name); /***********************************/ /* CREATE THE TIMER RELATED TABLES */ /***********************************/ /* timer groups are the groups such as TAU_DEFAULT, MPI, OPENMP, TAU_PHASE, TAU_CALLPATH, TAU_PARAM, etc. This mapping table allows for NxN mappings between timers and groups */ CREATE TABLE timer_group ( timer INT, group_name VARCHAR NOT NULL, FOREIGN KEY(timer) REFERENCES timer(id) ON DELETE NO ACTION ON UPDATE NO ACTION ); /* index for faster queries into groups */ CREATE INDEX timer_group_index on timer_group (timer, group_name); /* * * * * timer parameters are parameter based profile values. an example is foo (x,y) where x=4 and y=10. In that example, timer would be the index of the timer with the name 'foo (x,y) <x>=<4> <y>=<10>'. This table would have two entries, one for the x value and one for the y value. */ CREATE TABLE timer_parameter ( timer INT, 104