Applicable in CAST Version
Release
Yes/No
8.0.x(error)
7.3.x(error)
7.2.x(error)
7.0.x(tick)

Introduction

There are 3 main phases:

  1. #Initialization
  2. #Processing functional modules
  3. #Updating CAST Systems Views
  4. #Compute metrics

Initialization

This phase occurs between the following messages:
'Selection successfully built in the Knowledge Base'
and
'Loading default options.'

In this phase the Snapshot Preparation Assistant retrieve information from the Knowledge Base, so some procedures and queries are executed on the Knowledge Base.
Note: In case of T-SQL and ASP technologies the SPA generate one query per object.

During the the initialization phase, the analyzer retrieves and build the dynamic sql queries from the KB, they are prepared in the working memory for the computation phase.  

Example: In the following screenshots we can see that the SPA spent 1 hour and 20 mins to perform this phase which represents 90% of the total execution time of the Snapshot Preparation Assistant in this example.

The start of the initialiszation phase.

The end of the initialization phase.

Processing functional modules

In this step, the Snapshot Preparation Assistant processes the functional Module and displays their contents. Here an extract of the log file showing this step:
Processing Functional Module 'Cotisation'
Processing Functional Module 'Prestation'
Content of Module 'Cotisation'
Root objects:
Partial Subset Cobol Subset 'Cotisation Cobol Subset part of COBOL_CEGEDIM_ACTIV' (ID=2493418)
Subset objects:
_ TYPE=Cobol CopyBook, COUNT=2045_
_ TYPE=Cobol Data Link, COUNT=2_
_ TYPE=Cobol Directory, COUNT=1_
_ TYPE=Cobol File Link, COUNT=95_
_ TYPE=Cobol Paragraph, COUNT=49223_
_ TYPE=Cobol Program, COUNT=1785_
_ TYPE=Cobol Section, COUNT=6_
Content of Module 'Prestation'
Root objects:
Partial Subset Cobol Subset 'Prestation Cobol Subset part of COBOL_CEGEDIM_ACTIV' (ID=2493419)
Subset objects:
_ TYPE=Cobol CopyBook, COUNT=478_
_ TYPE=Cobol Directory, COUNT=1_
_ TYPE=Cobol File Link, COUNT=57_
_ TYPE=Cobol Paragraph, COUNT=11143_
_ TYPE=Cobol Program, COUNT=449_

Updating CAST Systems Views

This step is between the following messages:
Starting Update of Cast System Views
and
CAST System Views updated

Compute metrics

Here is an extract of the log file showing this step:
Computing metrics on d:\cast\sourcesprojets\am\metric\metric\mainframe\cobol\trp\trppbg29.cob
Computing metrics on d:\cast\sourcesprojets\am\metric\metric\mainframe\cobol\trp\trppi840.cob
Computing metrics on d:\cast\sourcesprojets\am\metric\metric\mainframe\cobol\trp\trpptg90.cob

In this log, the metric computation is finished but we can observe slowness in the end of the metrics computation and just before Flushing result;
2010-04-14 17:43:38.165 Computing metrics on %src%\TagTransformer.java
2010-04-14 23:58:32.060 Flushing results
You can see, that Flushing results message is entered in the log 6 hours after the last message about metric computation.
In this step, metric assistant is computing The SQL dynamic metrics based on the Inference Engine.