Self attached profiler - save not to file

Hello.

Is it possible to save data generated by self profiler not to file, but to other place - memory, database?

It can be solved if after stop of profiler I can get profiler data just as byte array.

If not, can I choose name of the file? Currently as I understand I can choose only folder, not the file.

0
5 comments

Hi Denis,

 

Unfortunately no, it is not possible to save a generated data to memory or database.

Also currently you can't choose a file name, but it is in our plans, you can vote for the issue in our tracker: https://youtrack.jetbrains.com/issue/PROF-706

0
Avatar
Permanently deleted user

Hello.

Is it possible to make a feature request, to profile my app to byte[] instead of the file?

0

Denis,

 

Could you please describe the scenario when you need a byte array instead of the file?

0
Avatar
Permanently deleted user

Konstantin, 

we have a client-server desktop application. Our partners can write their own modules for it, and they should be able to profile our application.

Very often they need to do it in production, which is sometimes possible with remote profiling, but sometimes there is no direct connection to a production network (for example if Citrix or TeamViewer is used).

To solve this problem we decided to integrate dotTrace profiling into out application. I believe this is advantage for jetBrains, because our partners will have to buy licenses to use this functionality.

Of course we can provide such functionality without profiling into byte array, but with it it would be more user friendly.

In first case we need to write instructions for them, something like: after profiling please go to certain folder and open profiling file, etc.

But if we have support of byte arrays, it will look for them much more integrated into our app: they start profiling, stop it, and they have a row in the grid, they can click on it and dotTrace with profile will be opened. Also if they have several databases they are working this, storage of profiling data for future analysis would be more centralized: in app itself, not in some folders. And we can store a lot of meta-information together with profiling data: who and when took it, comments from this person and so on.

0

Denis,

Thank you!

It looks reasonable, but currently there is no technical possibility to write snapshots to a byte array, and we are not sure that such possibility will appear in the near future. I've created a feature request in our tracker: https://youtrack.jetbrains.com/issue/PROF-731
Also, I hope that we'll add a possibility to set a file name soon.

0

Please sign in to leave a comment.