Excellent. It took me less than ten minutes to get MetricsReloaded calculations working properly in the background. Is there anything special I need to do enable multi-threaded backgrounding, or is it just a matter of playing "guess the cores and spawn the threads"?
We are using java.util.concurrent.Executors#newFixedThreadPool(Runtime.getRuntime().availableProcessors()) for spawning threads. It's just important to remember to acquire the readAction() for the least possible time interval to improve responsiveness.
Excellent. It took me less than ten minutes to get MetricsReloaded calculations working properly in the background. Is there anything special I need to do enable multi-threaded backgrounding, or is it just a matter of playing "guess the cores and spawn the threads"?
Hello Dave,
It's already there.
ProgressManager.getInstance().runProcessWithProgressAsynchronously().
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Excellent. It took me less than ten minutes to get MetricsReloaded calculations working properly in the background. Is there anything special I need to do enable multi-threaded backgrounding, or is it just a matter of playing "guess the cores and spawn the threads"?
--Dave Griffith
We are using
java.util.concurrent.Executors#newFixedThreadPool(Runtime.getRuntime().availableProcessors())
for spawning threads.
It's just important to remember to acquire the readAction() for the least
possible time interval to improve responsiveness.
--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"
"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:33492818.1169476036870.JavaMail.itn@is.intellij.net...
>
Just as a quick query, should MetricsReloaded be working in IDEA 6?
I noticed someone asked in the plug-ins forum in December (http://www.intellij.net/forums/thread.jspa?messageID=5179033�) and I can't collect metrics at all, it just brings back an empty window.
There should be a new release shortly, as soon as a QA cycle is finished.
--Dave Griffith