On 17.08.2018 18:12, Steven Rostedt wrote:
On Fri, 17 Aug 2018 18:09:44 +0300 "Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> wrote:On 17.08.2018 17:58, Steven Rostedt wrote:And we can have more than one file saved in the session. Hmm, I wonder if we should add code to see if files still exist, and remove the information if they do not.Actually if you use this a lot you may have a big number of *.json files in your work directory. And some of these files can represent sessions, some other only filters. But when you click on the Session Import, for example, the Open File dialog will show you all *.json files. In this case you may get confused and try to open a wrong file. This is the reason why we need the "type" field.I was actually thinking of having a single json file that stores all "full sessions". Like a .viminfo file.
This is a good idea.But we have to support saving individual sessions as well. Mainly for bug reports. In my work directory I have a lot of files called bugXX.json ;-)
Actually we can add a menu for creating a tarball containing trace.dat and session.json.
Yordan The specific filters and such
should probably be in separate files as that would be how people could load and save them. -- Steve