]>
sourceware.org Git - systemtap.git/blob - coveragedb.h
2 // Copyright (C) 2007 Red Hat Inc.
4 // This file is part of systemtap, and is free software. You can
5 // redistribute it and/or modify it under the terms of the GNU General
6 // Public License (GPL); either version 2, or (at your option) any
19 tuples: file, line number, column, type of object, name
20 values: number of times object "pulled_in", number of times "removed",
23 if (compiled == 0) object never compiled
24 if (compiled > 0) object compiled
26 The following are not currently implemented.
27 if (executed == 0) never executed
28 if (executed > 0) executed
31 Want to make sure that the data base accurately reflects testing.
32 1) atomic updates, either commit all or none of information
33 2) only update coverage db compile info, if compile successful
34 3) only update coverage db execute info, if instrumentation run suscessfully
37 Would like to have something that looks for interesting features in db:
39 list which things are not compile
40 list which things are not exectuted
42 ratio of compiled/total (overall, by file, by line)
43 ratio of executed/total (overall, by file, by line)
54 class coverage_element
{
65 coverage_element() { line
= 0; col
= 0;
66 compiled
= 0; executed
= 0; }
68 coverage_element(source_loc
&place
) {
69 file
= place
.file
; line
= place
.line
; col
= place
.column
;
70 compiled
= 0; executed
= 0; }
75 void print_coverage_info(systemtap_session
&s
);
76 void update_coverage_db(systemtap_session
&s
);
This page took 0.038357 seconds and 5 git commands to generate.