-
Is there a way I could enable logging only once a certain condition happens i.e. enable logging when the retired instruction counter passes 100k. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes! In the Olympia Performance Simulator (and in the Sparta CoreModel), you can use the command line option
This will start collecting a log on the How this works... Since the command line option is a Sparta command line option, Sparta needs to know which counter in the implemented simulator that represents the For example:
|
Beta Was this translation helpful? Give feedback.
-
Keep in mind that the command line options |
Beta Was this translation helpful? Give feedback.
-
Thank you Knute, exactly what I was looking for. Can't believe I missed it in the help message. |
Beta Was this translation helpful? Give feedback.
Yes! In the Olympia Performance Simulator (and in the Sparta CoreModel), you can use the command line option
--debug-on-icount 100k
to start whatever collection mechanisms you've defined on the command line. For example:This will start collecting a log on the
top
node after 100k instructions have been retired.How this works...
Since the command line option is a Sparta command line option, Sparta needs to know which counter in the implemented simulator that represents the
icount
. This is communicated to Sparta via the derivedsparta::app::Simulation
instance overriding the methodfindSemanticCounter_
For …