Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Jan 26, 2024
1 parent 24a6cca commit 02b406a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Eventlog/Ticky.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,21 +179,6 @@ closureSize fvs cl_args
| otherwise = (1 + fvs) * 8



_renderSpark :: Int -> [(Double, Word64, Word64)] -> Html
_renderSpark size vs = H.span ! A.class_ "linechart"
! customAttribute "data-allocd" (H.preEscapedTextValue $ T.intercalate "," (map renderLine vs))
! customAttribute "data-entries" (H.preEscapedTextValue $ T.intercalate "," (map renderLineEntries vs))
! customAttribute "sparkChartRangeMax" (H.toValue max_alloc_n)
$ mempty
where
rdouble = T.pack . showFixed True . realToFrac @Double @(Fixed E2)
renderLine (x,w, _) = rdouble x <> ":" <> T.pack (show (w `Prelude.div` fromIntegral size))
renderLineEntries (x,_, e) = rdouble x <> ":" <> T.pack (show e)

max_alloc_n = last_allocd `Prelude.div` (fromIntegral size)
(_, last_allocd, _) = Prelude.head vs

initTable :: Bool -> T.Text
initTable ipe =

Expand Down

0 comments on commit 02b406a

Please sign in to comment.