# US 2011/0258603 A1 · Method and system for simulating and analyzing code execution in an on-demand service environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2011/0258603 A1
- Document ID: US20110258603A1
- Status: Published application
- Kind: A1
- Application number: 12/943,212
- Filed: 2010-11-10
- Published: 2011-10-20
- Earliest claimed: 2010-04-16
- Assignees: salesforce. com, inc.
- Inventors: Peter S. Wisnovsky; Taggart C. Matthiesen
- Web page: https://patentgrep.com/patent/US20110258603A1

## CPC

- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 11/3668: Testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In accordance with embodiments, there are provided mechanisms and methods for simulating and analyzing code execution in a multi-tenant environment. These mechanisms and methods for simulating and analyzing code execution in a multi-tenant environment can enable embodiments to provide an improved interface for analyzing the performance of application on the multi-tenant database. The ability of embodiments to provide better analysis of simulated execution can enable higher quality application developed in less time.

## Claims

### Claim 1

A method comprising:
receiving a selection of a hierarchical level in an execution tree for a simulated execution of a software application;
finding an entry corresponding to the selected hierarchical level in an execution log of the simulated execution of the software; and
displaying the execution log and highlighting the found entry.

### Claim 2 (depends on 1)

The method of claim 1, wherein the execution tree shows operations performed in the simulated execution grouped in accordance with a functional hierarchy.

### Claim 3 (depends on 1)

The method of claim 1, wherein the execution tree indicates events logged during the simulated execution.

### Claim 4 (depends on 3)

The method of claim 3, wherein the logged events include hardware resource usage events.

### Claim 5 (depends on 3)

The method of claim 3, wherein the logged events are each associated with a timestamp.

### Claim 6 (depends on 1)

The method of claim 1, further comprising finding a corresponding entry corresponding to the selected hierarchical level in source code corresponding to the simulated execution and displaying the found source code entry.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving a selection of a software application for simulated execution; and
simulating the execution of the software application; and
presenting output corresponding to the simulated execution of the software application as the execution log.

### Claim 8

A machine-readable medium carrying one or more sequences of instructions for simulating and analyzing code execution in a multi-tenant database system, which instructions, when executed by one or more processors, cause the one or more processors to carry out the steps of:
receiving a selection of a hierarchical level in an execution tree for a simulated execution of a software application;
finding an entry corresponding to the selected hierarchical level in an execution log of the simulated execution of the software; and
displaying the execution log and highlighting the found entry.

### Claim 9 (depends on 8)

The machine-readable medium of claim 8, wherein the execution tree shows operations performed in the simulated execution grouped in accordance with a functional hierarchy.

### Claim 10 (depends on 8)

The machine-readable medium of claim 8, wherein the execution tree indicates events logged during the simulated execution.

### Claim 11 (depends on 8)

The machine-readable medium of claim 8, further comprising instructions for carrying out the step of finding a corresponding entry corresponding to the selected hierarchical level in source code corresponding to the simulated execution and displaying the found source code entry.

### Claim 12

An apparatus for simulating and analyzing code execution in a multi-tenant database, the apparatus comprising:
a processor; and
one or more stored sequences of instructions which, when executed by the processor, cause the processor to carry out the steps of:
receiving a selection of a hierarchical level in an execution tree for a simulated execution of a software application;
finding an entry corresponding to the selected hierarchical level in an execution log of the simulated execution of the software; and
displaying the execution log and highlighting the found entry.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the stored sequences of instructions further cause the processor to carry out the steps of finding a corresponding entry corresponding to the selected hierarchical level in source code corresponding to the simulated execution and displaying the found source code entry.

### Claim 14 (depends on 12)

The method of claim 12, wherein the stored sequences of instructions further cause the processor to carry out the steps of:
receiving a selection of a software application for simulated execution; and
simulating the execution of the software application; and
presenting output corresponding to the simulated execution of the software application as the execution log.

### Claim 15

A simulation interface comprising:
an execution stack pane having a hierarchical tree of operations performed in the simulation of the execution of a software application; and
an execution log pane having a log of events during the simulated execution, the execution log pane being coupled to the execution stack pane so that upon the selection of a node in the execution stack pane, a corresponding event in the execution log pane is highlighted and so that upon the selection of an event in the execution log pane, a corresponding node in the tree of the execution stack pane is highlighted.

### Claim 16 (depends on 15)

The simulation interface of claim 15, further comprising a source pane having a sequential source code instruction listing to show source code corresponding to the execution log pane, the source pane being coupled to the execution log pane so that upon the selection of an event in the execution log pane, a corresponding instruction in the source pane is highlighted.

### Claim 17 (depends on 15)

The simulation interface of claim 15, further comprising a backtrace pane having a listing of operations performed during the simulated execution, the backtrace pane being coupled to the execution stack pane so that operations at nodes of the execution stack pane can be traced in reverse time order by selecting corresponding operations listed in the backtrace pane.

### Claim 18 (depends on 15)

The simulation interface of claim 15, further comprising an executed units pane to show profiling information for the simulated execution of the operations of the execution stack pane.

### Claim 19 (depends on 18)

The simulation interface of claim 18, wherein the profiling information includes a duration for the simulated execution of displayed operations.
