Topic: Project stats

A very interesting function for Jeff to consider adding to Simply Fortran's FILE and/or PROJECT menus would be a function to display program source STATISTICS for either the whole-project (preferred) and/or an individual source file.

Stats to display could include, for example,  these; the ones I'd find most interesting would be the source code line-counts:

  - Number of source files (not forgetting INCLUDE files)

  - Number of lines of source code
    including all comments and blank lines

  - Number of lines of source code
    including comments but not blank lines

  - Number of lines containing only comments
    (not comments appended to program lines)

  - Number of programs and subprograms
    (main program plus modules, subroutines and functions)

  - Number of function calls

  - Number of subroutine calls

  - Number of libraries linked from

  - Number of cups of coffee consumed

  - Number of hours spent on the program
    when you should have been in bed

...stuff like that.

---
John

Re: Project stats

John,

Your suggestion does sound like an interesting idea.  I think it would probably be implemented in a piecewise fashion.  Some things like lines of code and file counts, would be rather easy to pull from the current internal project index system (which is what handles constructing the source code outlines, etc.).  The function and subroutine call counts would probably come later as that analysis isn't quite present yet (but something is in the works...).  Cups of coffee consumed could probably be computed via a formula based on lines of code per hour, but it might require a user-specific calibration.

Jeff Armstrong
Approximatrix, LLC