Skip to content

Instantly share code, notes, and snippets.

@zmstone
Created November 16, 2023 10:00
Show Gist options
  • Save zmstone/5b0ccf497c08f9d28fe2221bb9ac3b16 to your computer and use it in GitHub Desktop.
Save zmstone/5b0ccf497c08f9d28fe2221bb9ac3b16 to your computer and use it in GitHub Desktop.
inspect erlang DCD file
F=fun(Path) -> {ok,Log} = disk_log:open([{file, Path}, {name, tmp}, {mode, read_only}]), {_, L,0} = disk_log:bchunk(Log, start, 100), disk_log:close(Log), [binary_to_term(I) || I <- L] end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment