Changes between Version 24 and Version 25 of ExplicitCallStack/StackTraceExperience


Ignore:
Timestamp:
Feb 12, 2007 11:44:51 AM (8 years ago)
Author:
bjpop
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExplicitCallStack/StackTraceExperience

    v24 v25  
    130130        | otherwise               = I32# (x# `divInt32#` y#)
    131131}}}
    132 Note the reference to ''divZeroError'' in the first guarded equation. This is defined as:
     132Note the reference to `divZeroError` in the first guarded equation. This is defined as:
    133133{{{
    134134divZeroError :: a
    135135divZeroError = throw (ArithException DivideByZero)
    136136}}}
    137 Hence it is a CAF. This is exactly the CAF that ''GHC.Err.CAF'' is refering to in the output from the cost centre stacks above.
     137Hence it is a CAF. This is exactly the CAF that `GHC.Err.CAF` is refering to in the output from the cost centre stacks above.
    138138
    139 Now, we get muich better results if we raise the exception inside the user's code. For instance, if we change the definition of the local variable ''k\''' like so:
     139Now, we get muich better results if we raise the exception inside the user's code. For instance, if we change the definition of the local variable `k'` like so:
    140140{{{
    141141k'   = error "bjpop crash"
    142142}}}
    143 We get the following output from running the program with ''-xc'':
     143We get the following output from running the program with `-xc` (edited to make it easier to compare with other traces):
    144144{{{
    145 <Utils.utRandomInts,FrontierDATAFN2.fdFs2,FrontierDATAFN2.fdFind,FrontierGENERIC2.fsMakeFrontierRep,StrictAn6.saNonRecSearch,StrictAn6.saNonRecStartup,StrictAn6.saGroups,StrictAn6.saMain,Main.maStrictAn,Main.main,Main.CAF>Main: bjpop crash
     145Utils.utRandomInts
     146FrontierDATAFN2.fdFs2
     147FrontierDATAFN2.fdFind
     148FrontierGENERIC2.fsMakeFrontierRep
     149StrictAn6.saNonRecSearch
     150StrictAn6.saNonRecStartup
     151StrictAn6.saGroups
     152StrictAn6.saMain
     153Main.maStrictAn
     154Main.main
     155Main.CAF
    146156}}}
    147157