diff options
Diffstat (limited to 'trace-graph.c')
-rw-r--r-- | trace-graph.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/trace-graph.c b/trace-graph.c index 0b2b7cf..c2f3574 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | #include "util.h" | 36 | #include "util.h" |
37 | 37 | ||
38 | #define DEBUG_LEVEL 0 | 38 | #define DEBUG_LEVEL 0 |
39 | #if DEBUG_LEVEL > 0 | 39 | #if DEBUG_LEVEL > 0 |
40 | # define dprintf(l, x...) \ | 40 | # define dprintf(l, x...) \ |
41 | do { \ | 41 | do { \ |
@@ -1876,7 +1876,7 @@ static void draw_hashed_plots(struct graph_info *ginfo) | |||
1876 | clean = ginfo->rtg_info.clean_records; | 1876 | clean = ginfo->rtg_info.clean_records; |
1877 | 1877 | ||
1878 | set_cpus_to_rts(ginfo, ginfo->view_start_time); | 1878 | set_cpus_to_rts(ginfo, ginfo->view_start_time); |
1879 | 1879 | ||
1880 | max_time = ginfo->view_end_time; | 1880 | max_time = ginfo->view_end_time; |
1881 | min_time = ginfo->view_start_time; | 1881 | min_time = ginfo->view_start_time; |
1882 | 1882 | ||
@@ -1885,18 +1885,22 @@ static void draw_hashed_plots(struct graph_info *ginfo) | |||
1885 | 1885 | ||
1886 | if (get_rts(ginfo, record) < min_time) { | 1886 | if (get_rts(ginfo, record) < min_time) { |
1887 | free_record(record); | 1887 | free_record(record); |
1888 | dprintf(3, "%llu < %llu, skipping\n", | ||
1889 | get_rts(ginfo, record), min_time); | ||
1888 | continue; | 1890 | continue; |
1889 | } | 1891 | } |
1890 | 1892 | ||
1891 | if (get_rts(ginfo, record) > max_time) { | 1893 | if (get_rts(ginfo, record) > max_time) { |
1892 | free_record(record); | 1894 | free_record(record); |
1895 | dprintf(3, "%llu > %llu, breaking\n", | ||
1896 | get_rts(ginfo, record), min_time); | ||
1893 | break; | 1897 | break; |
1894 | } | 1898 | } |
1895 | 1899 | ||
1896 | // TODO: hack to clean up until first release, make unhacky | 1900 | // TODO: hack to clean up until first release, make unhacky |
1897 | if (ginfo->rtg_info.clean_records && | 1901 | if (ginfo->rtg_info.clean_records && |
1898 | (ginfo->rtg_info.start_time == 0 || get_rts(ginfo, record) < ginfo->rtg_info.start_time)) { | 1902 | (ginfo->rtg_info.start_time == 0 || get_rts(ginfo, record) < ginfo->rtg_info.start_time)) { |
1899 | unsigned long long dull, rel = 0; | 1903 | unsigned long long dull, rel; |
1900 | char *dchar; | 1904 | char *dchar; |
1901 | int dint; | 1905 | int dint; |
1902 | 1906 | ||
@@ -1916,6 +1920,9 @@ static void draw_hashed_plots(struct graph_info *ginfo) | |||
1916 | ginfo->view_start_time = min_time; | 1920 | ginfo->view_start_time = min_time; |
1917 | ginfo->start_time = min_time; | 1921 | ginfo->start_time = min_time; |
1918 | 1922 | ||
1923 | dprintf(3, "found release at %llu, min_time now %llu \n", | ||
1924 | rel, min_time); | ||
1925 | |||
1919 | if (ginfo->rtg_info.duration) { | 1926 | if (ginfo->rtg_info.duration) { |
1920 | max_time = MIN(max_time, min_time + ginfo->rtg_info.duration * NSECS_PER_SEC); | 1927 | max_time = MIN(max_time, min_time + ginfo->rtg_info.duration * NSECS_PER_SEC); |
1921 | ginfo->view_end_time = max_time; | 1928 | ginfo->view_end_time = max_time; |
@@ -1929,6 +1936,9 @@ static void draw_hashed_plots(struct graph_info *ginfo) | |||
1929 | 1936 | ||
1930 | free_record(record); | 1937 | free_record(record); |
1931 | 1938 | ||
1939 | dprintf(3, "haven't released yet, skipping %llu\n", | ||
1940 | get_rts(ginfo, record)); | ||
1941 | |||
1932 | continue; | 1942 | continue; |
1933 | } | 1943 | } |
1934 | 1944 | ||