packages feed

timeplot 1.0.9 → 1.0.10

raw patch · 3 files changed

+12/−1 lines, 3 files

Files

Tools/TimePlot.hs view
@@ -150,6 +150,14 @@   "     group the events by supertrack and for each supertrack draw a graphical track",   "     using the plot type SOMETHING. It's up to SOMETHING to do something with these",   "     events, e.g. 'lines' will simply draw several line plots, one per subtrack.",+  "     WARNING: If you use '+k' to map a single event to multiple 'within' plots, use",+  "     the second form of within with suffix",+  "  'within[C] -> SUF XXXX' - same as within[C] XXXX, but the name of a track like",+  "     'job-JOBID' will be mapped not to 'job' but to 'job->SUF'. This is useful when",+  "     you use it with '+k' - e.g. if you wish to plot both 'duration quantile' and ",+  "     'duration binf' for some requests represented in the trace as '>req.PID'..'<req.PID'",+  "     then use +k req 'within[.] -> qtile quantile ....' +k req 'within[.] -> bins binf ...'",+  "     and you'll get 2 output tracks: req-qtile and req-bins.",   "  'acount N' is for activity counts: a histogram is drawn with granularity",   "     of N time units, where the bin corresponding to [t..t+N) has value",   "     'what was the average number of active events or impulses in that",
Tools/TimePlot/Conf.hs view
@@ -134,6 +134,9 @@         parseKind ("sum":_)        = error $ "sum requires one or two arguments: bin size and optionally " ++ 
                                              "subtrack style, e.g.: -dk 'sum 1' or -dk 'sum 1 stacked'"
         parseKind ("duration":ws)  = KindDuration  {subKind=parseKind ws}
+        parseKind (('w':'i':'t':'h':'i':'n':'[':sep:"]"):"->":suf:ws)
+                                   = let (sp, arr) = (S.pack suf, S.pack "->")
+                                     in KindWithin    {subKind=parseKind ws, mapName = (\x -> S.concat [x, arr, sp]) . fst . S.break (==sep)}
         parseKind (('w':'i':'t':'h':'i':'n':'[':sep:"]"):ws)
                                    = KindWithin    {subKind=parseKind ws, mapName = fst . S.break (==sep)}
         parseKind ["none"        ] = KindNone
timeplot.cabal view
@@ -1,5 +1,5 @@ name: timeplot-version: 1.0.9+version: 1.0.10 cabal-version: >=1.6 build-type: Simple license: BSD3