×

Methods and systems for debugging bytecode in an on-demand service environment

  • US 9,727,443 B2
  • Filed: 11/17/2015
  • Issued: 08/08/2017
  • Est. Priority Date: 04/20/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method for simulating execution debug in a system of a multi-tenant database environment, the system having at least a processor and a memory therein, wherein the method comprises:

  • executing code within the multi-tenant database environment on behalf of a plurality of separate and distinct customer organizations, each customer organization being uniquely identified by an organization identifier (OrgID), the multi-tenant database environment having elements of hardware and software that are shared by the plurality of separate and distinct customer organizations;

    wherein stopping the execution of the code for execution debug within the multi-tenant environment is not permitted due to such stopping of the code execution causing a code execution stop for all of the customer organizations presently executing other code on the shared hardware and software resource elements provided by the multi-tenant environment;

    forcing emission of execution data from the execution of the code within the multi-tenant database environment on behalf of the plurality of separate and distinct customer organizations by encoding one or more trace flags into the code prior to executing the code and by routing any operation or executable line of code processed against the multi-tenant database implementation on behalf of any one of the plurality of separate and distinct customer organizations through an encapsulated library of services to trigger the emission of the execution data when one or more trace preferences are active for a request to execute the code, the one or more trace preferences based on a client organization identifier (OrgID) associated with the request;

    capturing the execution data emitted from the execution of the code within the multi-tenant database environment, wherein the execution data emitted by the encapsulated library of services provides a transcript of all execution events that occur within the multi-tenant database implementation on behalf of any one of the plurality of separate and distinct customer organizations;

    persistently storing the captured execution data emitted from the execution of the code as the transcript of execution events; and

    replaying execution events associated with the OrgID associated with the request to simulate an original execution performed via the execution of the code within the multi-tenant environment by referencing the persistently stored execution data of the transcript of execution events without requiring any portion of the original execution be re-executed or reprocessed, wherein an execution debug simulator replays the execution events from the transcript captured based on the one or more trace debug preferences triggered to be active pursuant to the request as originally received.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×