Community
Participate
Working Groups
Hi, I've tried to import recent cachegrind files (generated by xdebug 2.6.0) in the Profiling Monitor view, but all imports fail with following exception: java.nio.file.InvalidPathException: Illegal char <:> at index 3: php:internal at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPath.parse(Unknown Source) at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at java.nio.file.Paths.get(Unknown Source) at org.eclipse.php.profile.core.data.ProfilerFunctionData.setFileName(ProfilerFunctionData.java:102) at org.eclipse.php.profile.core.data.ProfilerFunctionData.<init>(ProfilerFunctionData.java:44) at org.eclipse.php.profile.core.engine.cachegrind.CacheGrindModelParser.finishCurrent(CacheGrindModelParser.java:311) at org.eclipse.php.profile.core.engine.cachegrind.CacheGrindModelParser.buildModel(CacheGrindModelParser.java:281) at org.eclipse.php.profile.core.engine.cachegrind.CacheGrindModelParser.build(CacheGrindModelParser.java:402) at org.eclipse.php.profile.ui.wizards.ImportSessionWizard$1.run(ImportSessionWizard.java:57) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) A simple fix is to edit the problematic cachegrind file and: - remove all \r characters (I'm not sure that they are correctly handled by class CacheGrindParser) - replace line "fl=(1) php:internal" by "fl=(1)" After those 2 fixes, the file can be imported again. I'll provide an example of cachegrind file. Thierry.
Created attachment 277883 [details] an example of non-working (and untouched) cachegrind file
Created attachment 277884 [details] same cachegrind file, but working after my 2 manual fixes
New Gerrit change created: https://git.eclipse.org/r/140325
Gerrit change https://git.eclipse.org/r/140325 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=7737c6d87d7ac84062bb86320ba292cf3285a08a
Hi Dawid, this bug is still not resolved. Please read carefully my bug report again (the "php:internal" problem) and try file provided as attachment in Comment 1: https://bugs.eclipse.org/bugs/attachment.cgi?id=277883 Thierry.
Strange. On mac os both attachments works fine now. Could you send me oroginalnfiles? Maybe bugzilla changed something.
(In reply to Dawid Pakula from comment #6) > Strange. On mac os both attachments works fine now. Could you send me > oroginalnfiles? Maybe bugzilla changed something. Ok, I've sent them to your email address :)
New Gerrit change created: https://git.eclipse.org/r/140535
Gerrit change https://git.eclipse.org/r/140535 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=e992f2edd332b4a0811747e3193ba56ce2ea9b33