Condividi tramite


Coverage Profiler Application

A coverage application writes information about which lines of code in a file were run. A profiler application provides information about which lines actually run, how many times a line is run, duration, and more. Coverage and profiling enable a developer to identify problem areas in an application, especially skipped code and performance bottlenecks.

Visual FoxPro Coverage Profiler is provided in two parts – a Coverage engine you can use or customize, and a multiwindow application you can use to analyze programs and projects. The Coverage Profiler source files are not installed by default. To use these files you must first expand the xsource.zip file in the \Tools\XSource folder of the Visual FoxPro home directory.

The Coverage Profiler application provides several ways to view the data provided by the Coverage Engine. Coverage.app is a subclass of the Coverage engine. You can automate coverage, or modify the User Interface to suit your needs, run Coverage Profiler in unattended mode and not display the application window, or use engine features without using the interface.

Upon startup the coverage application suspends coverage logging enabled with a SET COVERAGE TO command. When you release the coverage object, the application provides a choice to restore the SET COVERAGE setting.

In This Section

  • Coverage Profiler Log File
    Describes how the Visual FoxPro Coverage Profiler uses a log file, which consists of records in comma-delimited lines.
  • Examining Application Coverage and Profile
    Provides information about how the Coverage Profiler can provide accurate and useful information about your project or application.
  • Coverage Profiler Modification
    Describes how to change the default setting of the Coverage Profiler application so that it can run inside the main Visual FoxPro window, instead of in a separate window.
  • Coverage Profiler Add-Ins
    Describes how to write add-ins and enhance the Coverage Profiler application.
  • Logging Code Coverage
    Explains how code coverage gives you information about which lines of code have been executed and how long it took to execute them. You can use this information to refine your code for performance and ensure that you've adequately tested the code.
  • Conserving Disk Space During Coverage Runs
    Discusses how you can change the size of some of the engine work table fields to make these tables somewhat smaller to avoid "out of disk space" errors during coverage runs.
  • Development Productivity Tools
    Provides information on developer tools provided for application development within the Visual FoxPro application and the language.
  • IntelliSense Overview
    Provides information on IntelliSense, which displays information in popup windows and drop-down lists that assist you with statement and function completion syntax.
  • Coverage Profiler Application
    Discusses a coverage application, which writes information about which lines of code in a file were run, and a profiler application, which provides information about which lines actually run, how many times a line is run, duration, and so on.
  • Project Manager Hooks
    Describes how you can access a project programmatically, making it possible for you to manipulate a project as an object.
  • Automating Keystroke Tasks with Macros
    Describes how you can record and save keystrokes in macros by using the Macros dialog box.
  • Productivity Tools
    Describes the different tools available to help make creating Visual FoxPro applications easier and faster.