EvaluationData

EvaluationData[expr]
gives an association containing the result of evaluating expr and metadata about the process of doing so.

DetailsDetails

  • Items generated by EvaluationData include:
  • "Result"the result of evaluating expr
    "Success"whether the evaluation is considered successful
    "FailureType"the type of failure, if any
    "InputString"the original input string
    "Messages"a list of names of messages generated while evaluating expr
    "MessagesText"text of messages generated while evaluating expr
    "MessagesExpressions"expression forms of messages
    "Timing"the CPU time in seconds spent evaluating expr
    "AbsoluteTiming"the absolute time in seconds spent evaluating expr
  • EvaluationData has attribute HoldAllComplete.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Gather data for evaluating a simple calculation:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)