This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 76611 - *Code Model* Provide file-based statistic of problems for parser phase
Summary: *Code Model* Provide file-based statistic of problems for parser phase
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on: 76612 76613 76615 76616
Blocks:
  Show dependency tree
 
Reported: 2006-05-19 16:09 UTC by Vladimir Voskresensky
Modified: 2008-06-26 10:07 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-05-19 16:09:19 UTC
To analyze later work to improve accuracy of code model we need statistics of
such problems. I.e. problems could be like:
 - included file is not found
 - lexer failed on regognizing symbol
 - parser failed on recognizing token
 - resolver doesn't resolve names correctly
...
Comment 1 Vladimir Voskresensky 2006-05-24 21:17:02 UTC
Integrated changes:
statistics is turned on with cnd.modelimpl.stat.level property.
Level 0:
- no statistics
Level 1
- summary about first and last problems during file parsing
- summary about lexer problems
- summary about parser problems
- summary about failed or recursive inclusions
Level 2
- *** All from Level 1 ***
- datailes about first/last found lexer/parser problem
- detailes about the similar parser/lexer problems
- datailes about inclusions (where was included from and how many times)
Level 3
- *** All from Level 2 ***
- detailes of stack trace for lexer/parser problems

To use statistics from test harness:
if (Diagnostic.getStatisticsLevel() == 0) {
    // need to set the default level
    Diagnostic.setStatisticsLevel(DEFAULT_TRACEMODEL_STATISTICS_LEVEL);
}
Diagnostic.initFileStatistics(file.getAbsolutePath());
...
Diagnostic.dumpFileStatistics(dumpFile);
Comment 2 Vladimir Voskresensky 2006-09-07 16:18:44 UTC
no more critical after resolving 3 of 4 statistics
Comment 3 Vladimir Kvashin 2007-03-02 23:11:25 UTC
Downgrading in accordance with comment above
Comment 4 Vladimir Voskresensky 2008-06-26 10:07:29 UTC
task was already fixed