Static Code Profiler

A useful tool to profile code.  The tool and tests can be downloaded here

Input:  c/c++/java files
Output: classification of statements based on their operators and data types of variables

Example output:
####################################
Statement classification based on computation
17 – the number of arithmetic
13 – the number of conditions (including loop conditions)
9 – the number of loops
10 – the number of goto, break, continue, return
74 – the number of calls

Statement classification based on data types
171 – the number of statements with only scalar (int, long, char, Boolean, short) data type
0 – the number of statements with float point – single precision
94 – the number of statements with double
0 – the number of statements with containers (stack, array, list, queue)
127 – the number of statements with user defined data types

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: