Module "PlProfileData.curry"

Library to access profile data of the Prolog system
IMPORT NOTE: If this module is used, one must set the PAKCS option "plprofile" (wiht ":set +plprofile") in order to make the profile data available from the Prolog system!

Author: Michael Hanus

Version: February 2004


 Exported names:

Datatypes:
ProfileSelection

Constructors:
Backtracks | Calls | ChoicePoints | ExecTime

Functions:
getHnfDefinitions | prim_profileClauses | prim_profilePredicates | profileClauses | profilePredicates | profileReset | profileView


 Summary of exported functions:

profileReset  :: IO ()  deterministic 
          Resets all profile counters.
profilePredicates  :: ProfileSelection -> IO [(String,Int)]  deterministic 
          Gets profile data of all predicates.
prim_profilePredicates  :: ProfileSelection -> IO [(String,Int)]  deterministic 
          
profileClauses  :: ProfileSelection -> String -> IO [(Int,Int)]  deterministic 
          Gets profile data of all clauses of a particular predicate.
prim_profileClauses  :: ProfileSelection -> String -> IO [(Int,Int)]  deterministic 
          
profileView  :: IO ()  deterministic 
          Starts graphical viewer for profile data via the Gauge profiling tool of Sicstus Prolog.
getHnfDefinitions  :: IO [(Int,String)]  deterministic 
          Gets the association of HNF clauses to functions symbols (only for internal use).

 Imported modules:

Prelude

 Exported datatypes:

ProfileSelection

Constructors:

Calls :: ProfileSelection
Backtracks :: ProfileSelection
ChoicePoints :: ProfileSelection
ExecTime :: ProfileSelection



 Exported functions:

profileReset :: IO ()  deterministic 

Resets all profile counters.

Further infos:
  • externally defined

profilePredicates :: ProfileSelection -> IO [(String,Int)]  deterministic 

Gets profile data of all predicates.


prim_profilePredicates :: ProfileSelection -> IO [(String,Int)]  deterministic 

Further infos:
  • externally defined

profileClauses :: ProfileSelection -> String -> IO [(Int,Int)]  deterministic 

Gets profile data of all clauses of a particular predicate. The result is a list of pairs (predicate number, profile count)


prim_profileClauses :: ProfileSelection -> String -> IO [(Int,Int)]  deterministic 

Further infos:
  • externally defined

profileView :: IO ()  deterministic 

Starts graphical viewer for profile data via the Gauge profiling tool of Sicstus Prolog.

Further infos:
  • externally defined

getHnfDefinitions :: IO [(Int,String)]  deterministic 

Gets the association of HNF clauses to functions symbols (only for internal use).

Further infos:
  • externally defined


Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Jun 16 17:14:57 2009