lttng / lttng-scope

A trace viewer and analyzer for LTTng kernel and user space traces
https://lttng.org/beta/#lttng-scope
Eclipse Public License 1.0
28 stars 6 forks source link

Generated project files are kept around forever #77

Closed tahini closed 6 years ago

tahini commented 6 years ago

My disk was almost full to start with and opening a few large traces filled the little space that was left. I had to explore my drive to guess the location of supplementary files in .local/share/lttng-scope

I know by design you keep supplementary files in case one opens the trace again. That's fine, but there should be a way to clean up.

Some suggestions (not exclusive):

ghost commented 6 years ago

Hi Geneviève, thanks for the comments!

Indeed, right now there is not much done in terms of project/files management. We create database files for analyses and we just leave them there forever. It is an alpha after all ;)

The next version (0.4) which I am working on right now will include better project management and persistence. The idea would be to have the user work with "projects":

This way at least, the only thing we would persist are things the user will have pointed to, so it becomes the user's responsibility afterwards.

tahini commented 6 years ago

For now, you could simply document where the generated files are located so people like me who opened large traces just to try can delete them easily. Maybe in the limitations of the https://lttng.org/beta/ page. Because in the meantime, it's polluting the user's hard drive.

ghost commented 6 years ago

The reported problem is real, but it will be fixed by #51 so I will mark it as a duplicate of that one.