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

Visual Profiler tool support #1816

Closed
dzhwinter opened this issue Jun 2, 2015 · 7 comments
Closed

Visual Profiler tool support #1816

dzhwinter opened this issue Jun 2, 2015 · 7 comments
Labels

Comments

@dzhwinter
Copy link

this feature always contains in many modern programming editors, And it is useful in daily code polish work when ask to optimal the performance. If there is an common layer that one can add third-party profiling tool into spacemacs without any knowledge,about elisp., which will be great.

@dzhwinter
Copy link
Author

@cpaulik
Copy link
Contributor

cpaulik commented Jun 3, 2015

I'm not quite sure how this should work since the profilers you linked have quite different setup/calling procedures. I doubt that this could be generalized in a way that makes it possible to add profilers without knowledge of elisp.

Regarding the python profiler: have you tried using the python -m profiling profile your-program.py in compile mode? Does this work interactively?

@syl20bnr
Copy link
Owner

syl20bnr commented Jun 3, 2015

@dzhwinter Do you have examples of editors where this feature is available so I can try it ?

@dzhwinter
Copy link
Author

cputime

here is my code
code
@cpaulik

@dzhwinter
Copy link
Author

I'm explore the possible to integrated performance and diagnose tools in spacemacs.
take those profiling tools just for example.
Github reject my screenshot uploading request again and again. Only can i post an example here.
http://www.zhihu.com/question/27768721/answer/38014129 forget the chinese, just take a look at the image.
editors like eclipse or visual studio both have this feature.
for c#, c++, in Visual Studio 2015 community(free), clink on Performance and diagnose. it only support MS language c#, of course, c++.
for cuda
https://developer.nvidia.com/nvidia-nsight-visual-studio-edition

Actually, profile tools have little value in python, but it really matters when improve c++ and cuda interact with hardware language code.
So, my question is, how to hook c++ or cuda profiling tools in spacemacs? or intergrated them in?
: )

@tuhdo
Copy link
Contributor

tuhdo commented Jun 4, 2015

As for C/C++ profiling, Emacs does not go that far. Maybe you should have a look at a dedicated application Kcachegrind or gprof that comes with GNU Binutils then use gprof2dot to view it in graph format. I don't see any difference except you have to use two OS windows.

@StreakyCobra
Copy link
Contributor

As it's a 4 months old discussion that nobody is looking at anymore, it will not be answered nor continued. I'm closing it then, but in any case feel free to open a new one to re-up the discussion ☺️

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

No branches or pull requests

5 participants