Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easily compress/decompress itsdb profiles #109

Closed
goodmami opened this issue May 16, 2017 · 1 comment
Closed

Easily compress/decompress itsdb profiles #109

goodmami opened this issue May 16, 2017 · 1 comment
Milestone

Comments

@goodmami
Copy link
Member

PyDelphin has no trouble reading or writing compressed (.gz) files in [incr tsdb()] profiles, so a nice feature for the delphin command would be to compress a profile in-place. Perhaps this could be part of the mkprof subcommand. This could be done just by adding an --in-place switch to alternate with the otherwise required --source:

delphin mkprof DEST (--source PROFILE | --in-place)
                    [--apply=APL]... [--filter=CND]...
                    [--relations=FILE] [--full|--skeleton] [--gzip]
                    [-v...|-q]

Then to compress:

delphin mkprof path/to/profile --in-place --full --gzip

To decompress:

delphin mkprof path/to/profile --in-place --full

But this could also be simpler, e.g. something like:

delphin mkprof path/to/profile --compress
delphin mkprof path/to/profile --decompress

But then we'd need a new usage synposis and 2 new options, instead of just one new option.

@goodmami goodmami modified the milestone: v0.7.0 May 17, 2017
@goodmami goodmami modified the milestones: v0.7.0, v0.6.2 May 31, 2017
@goodmami
Copy link
Member Author

goodmami commented Jun 1, 2017

Going with --in-place, because then other things open up, like filtering or applying to profiles in place.

Creating skeletons with --in-place is currently not allowed, because deleting the non-item tables (e.g. without deleting extra files in the directory) is a bit messy, and it seems a weak use case anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant