Changes between Version 24 and Version 25 of ExplicitCallStack/StackTraceExperience
 Timestamp:
 Feb 12, 2007 11:44:51 AM (7 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

ExplicitCallStack/StackTraceExperience
v24 v25 130 130  otherwise = I32# (x# `divInt32#` y#) 131 131 }}} 132 Note the reference to ''divZeroError''in the first guarded equation. This is defined as:132 Note the reference to `divZeroError` in the first guarded equation. This is defined as: 133 133 {{{ 134 134 divZeroError :: a 135 135 divZeroError = throw (ArithException DivideByZero) 136 136 }}} 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.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. 138 138 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: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: 140 140 {{{ 141 141 k' = error "bjpop crash" 142 142 }}} 143 We get the following output from running the program with ''xc'':143 We get the following output from running the program with `xc` (edited to make it easier to compare with other traces): 144 144 {{{ 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 145 Utils.utRandomInts 146 FrontierDATAFN2.fdFs2 147 FrontierDATAFN2.fdFind 148 FrontierGENERIC2.fsMakeFrontierRep 149 StrictAn6.saNonRecSearch 150 StrictAn6.saNonRecStartup 151 StrictAn6.saGroups 152 StrictAn6.saMain 153 Main.maStrictAn 154 Main.main 155 Main.CAF 146 156 }}} 147 157