Editing still slow in 7348 -- how to get CPU snapshot?

Editing some files is still painfully slow in 7348, but the CPU snapshot buttons in the toolbar are gone now.

What's the right way to collect a CPU snapshot in the current build?

anders

5 comments
Comment actions Permalink

Hello Anders,

Editing some files is still painfully slow in 7348, but the CPU
snapshot buttons in the toolbar are gone now.

What's the right way to collect a CPU snapshot in the current build?


Gone? They were'n supposed to.
Please ensure that you have -agentlib:yjpagent in your idea.exe.vmoptions.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I have this line in there:

-agentlib:yjpagent=sessionname=IntelliJIDEA

0
Comment actions Permalink

After modifying the agent line to just '-agentlib:yjpagent', I now get an exception on startup:

2007-10-12 11:48:27,605 ERROR - plication.impl.ApplicationImpl - JDK: 1.6.0_03
2007-10-12 11:48:27,605 ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) Client VM
2007-10-12 11:48:27,605 ERROR - plication.impl.ApplicationImpl - Vendor: Sun Microsystems Inc.
2007-10-12 11:48:27,605 ERROR - plication.impl.ApplicationImpl - OS: Windows Vista
2007-10-12 11:48:27,605 ERROR - plication.impl.ApplicationImpl - Original exception:
java.lang.InterruptedException
at java.lang.ProcessImpl.$$YJP$$waitFor(Native Method)
at java.lang.ProcessImpl.waitFor(ProcessImpl.java)
at com.intellij.openapi.util.process.InterruptibleProcess.start(InterruptibleProcess.java:65)
at com.intellij.openapi.util.process.InterruptibleActivity$1.run(InterruptibleActivity.java:69)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:10)


I have YJP 7.0.3 installed on my machine -- could that be causing a problem?

0
Comment actions Permalink

I uninstalled my copy of YJP, and the exception goes away. However, I still don't get any profiling buttons, and, even though I have the option in the file, the log has this entry:

2007-10-12 11:54:00,827 INFO - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.

0
Comment actions Permalink

For reference, the entire contents of my idea.exe.vmoptions file:

-agentlib:yjpagent
-Xms384m
-Xmx512m
-XX:MaxPermSize=99m
-ea

0

Please sign in to leave a comment.