---
title: thunder.last_interpreter_log
description: >-
  Returns the list of instructions and other information the interpreter
  encountered while tracing through the

  user program (on the last cache miss).
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.last_interpreter_log
---
# thunder.last_interpreter_log {#thunder-last-interpreter-log}

### `thunder.last_interpreter_log(fn)` {#thunder.last_interpreter_log}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/__init__.py#L1004-L1013)

Returns the list of instructions and other information the interpreter encountered while tracing through the user program (on the last cache miss).

Return type:

[`list`](https://docs.python.org/3/builtins/stdtypes.html#list "(in Python v3.15)")\[[`Instruction`](https://docs.python.org/3/library/dis.html#dis.Instruction "(in Python v3.15)") | [`str`](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)") | `LineLogItem` | `OpaqueLogItem` | `LookasideLogItem` | `CallLogItem` | `ReturnLogItem`\]

Parameters:

**fn** ([_Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")) –

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
