sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.address/src/com/nokia/carbide/cpp/pi/address/GppTraceParser.java
equal
deleted
inserted
replaced
230 |
230 |
231 if (data.startsWith("Bappea_GPP_V")) //version 1.20 //$NON-NLS-1$ |
231 if (data.startsWith("Bappea_GPP_V")) //version 1.20 //$NON-NLS-1$ |
232 { |
232 { |
233 try |
233 try |
234 { |
234 { |
235 int separatorIndex = data.indexOf("#"); //$NON-NLS-1$ |
235 int separatorIndex = data.indexOf('#'); //$NON-NLS-1$ |
236 this.traceVersion = data.substring(data.indexOf("_")+1,separatorIndex); //$NON-NLS-1$ |
236 this.traceVersion = data.substring(data.indexOf('_')+1,separatorIndex); //$NON-NLS-1$ |
237 } |
237 } |
238 catch (Exception e) |
238 catch (Exception e) |
239 { |
239 { |
240 return false; |
240 return false; |
241 } |
241 } |
397 |
397 |
398 try |
398 try |
399 { |
399 { |
400 if (name.endsWith("]")) //$NON-NLS-1$ |
400 if (name.endsWith("]")) //$NON-NLS-1$ |
401 { |
401 { |
402 String l = name.substring(name.lastIndexOf("[")+1,name.lastIndexOf("]")); //$NON-NLS-1$ //$NON-NLS-2$ |
402 String l = name.substring(name.lastIndexOf('[')+1,name.lastIndexOf(']')); //$NON-NLS-1$ //$NON-NLS-2$ |
403 Long threadAddress = Long.decode("0x"+l); //$NON-NLS-1$ |
403 Long threadAddress = Long.decode("0x"+l); //$NON-NLS-1$ |
404 // this.threadAddressToName.put(threadAddress,name); |
404 // this.threadAddressToName.put(threadAddress,name); |
405 this.threadAddressToName.put(threadAddress,p.name+"::"+name); |
405 this.threadAddressToName.put(threadAddress,p.name+"::"+name); |
406 name = name.substring(0,name.lastIndexOf("[")); //$NON-NLS-1$ |
406 name = name.substring(0,name.lastIndexOf('[')); //$NON-NLS-1$ |
407 } |
407 } |
408 } |
408 } |
409 catch (Exception e) |
409 catch (Exception e) |
410 { |
410 { |
411 e.printStackTrace(); |
411 e.printStackTrace(); |