bin/Builder-viz: Printing html + Syntax

This commit is contained in:
rand00 2022-01-24 13:32:08 +01:00 committed by Reynir Björnsson
parent 2874b54c40
commit f3178cace0

View file

@ -46,7 +46,7 @@ let print_treemap_html elf_path elf_size =
info info
|> Treemap.of_tree |> Treemap.of_tree
|> Treemap.to_html_with_scale ~binary_size:elf_size ~scale_chunks |> Treemap.to_html_with_scale ~binary_size:elf_size ~scale_chunks
|> Fmt.to_to_string (Tyxml.Html.pp ()) |> Tyxml.Html.pp () Format.std_formatter
(* |> Treemap.svg (* |> Treemap.svg
* |> Fmt.to_to_string (Tyxml.Svg.pp ()) *) * |> Fmt.to_to_string (Tyxml.Svg.pp ()) *)
@ -106,5 +106,8 @@ module Cmd = struct
end end
let () = let () =
Cmdliner.Term.eval_choice Cmd.default [ Cmd.help; Cmd.treemap ] Cmdliner.Term.eval_choice Cmd.default [
Cmd.help;
Cmd.treemap
]
|> Cmdliner.Term.exit |> Cmdliner.Term.exit