Pre-computed dynamic instrumentation
    1.
    发明授权
    Pre-computed dynamic instrumentation 有权
    预先计算动态仪器

    公开(公告)号:US07805717B1

    公开(公告)日:2010-09-28

    申请号:US11252343

    申请日:2005-10-17

    IPC分类号: G06F9/45 G06F9/44

    摘要: A system and method for instrumenting program instructions. A processing system includes a compiler and a profiler. The compiler is configured to notify the profiler of a compilation event corresponding to first program instructions. In response to detecting the event, the profiler is configured to intercept compilation of the first program instructions, determine whether an instrumented version of the first program instructions is currently available, instruct the compiler to compile the instrumented version of the first program instructions if available, and retrieve and instrument the first program instructions if not available. The profiler may maintain an instrumentation cache for storing instrumented versions of program instructions. The instrumentation cache may further include metadata which identifies portions of program code which have been instrumented and their location. The profiler may generally instrument program instructions once during the resident life of a corresponding application.

    摘要翻译: 用于测试程序指令的系统和方法。 处理系统包括编译器和分析器。 编译器被配置为通知分析器与第一程序指令相对应的编译事件。 响应于检测到事件,分析器被配置为拦截第一程序指令的编译,确定第一程序指令的检测版本是否当前可用,指示编译器编译第一程序指令的检测版本(如果可用) 并且如果不可用,则检索并记录第一个程序指令。 分析器可以维护用于存储程序指令的仪表版本的仪器缓存。 仪器缓存还可以包括识别已经被装配的程序代码的部分及其位置的元数据。 轮廓仪通常可以在对应的应用程序的驻留寿命期间对程序指令进行一次仪表。

    System and method for profiling processes in a computing system
    2.
    发明授权
    System and method for profiling processes in a computing system 有权
    用于计算系统中的分析过程的系统和方法

    公开(公告)号:US07725882B1

    公开(公告)日:2010-05-25

    申请号:US11240232

    申请日:2005-09-30

    IPC分类号: G06F9/44

    摘要: A system and method for managing the environment of software processes in a computer system. A computer system comprises a processor and at least one process environment comprising one or more environment variables. The processor executes one or more processes, intercepts the launch of a process, sets at least one environment variable to a first value, and continues the launch of the process. Setting the environment variable may enable a profiler process. The processor may set at least one environment variable for the process to a value which is chosen irrespective of a value of the environment variable of a parent process of the process. Further, the processor may set at least one environment variable for the process to a default value if a data repository does not contain an entry that has an identification which corresponds to the process.

    摘要翻译: 一种用于管理计算机系统中的软件过程的环境的系统和方法。 计算机系统包括处理器和包括一个或多个环境变量的至少一个处理环境。 处理器执行一个或多个进程,拦截进程的启动,将至少一个环境变量设置为第一个值,并继续启动进程。 设置环境变量可能会启用分析器进程。 处理器可以将该过程的至少一个环境变量设置为与进程的父进程的环境变量的值无关的值。 此外,如果数据存储库不包含具有对应于该过程的标识的条目,则处理器可以将该过程的至少一个环境变量设置为默认值。

    Method, system and computer-readable code for instrumenting code for logging database-related strings
    3.
    发明授权
    Method, system and computer-readable code for instrumenting code for logging database-related strings 有权
    用于记录数据库相关字符串的代码的方法,系统和计算机可读代码

    公开(公告)号:US07702642B1

    公开(公告)日:2010-04-20

    申请号:US11295535

    申请日:2005-12-07

    IPC分类号: G06F17/00

    摘要: A method, system and computer readable code for instrumenting code into database access modules are disclosed. According to some embodiments, specific functions within the database access module are identified as query-execution functions, and instructions for logging at least one of database access strings and database connection string during runtime are instrumented into the identified query-execution functions. Exemplary database access strings include database query strings, such as an SQL query string, and stored procedure names. Optionally, additional instructions for extracting various parameters, such as database identifiers, performance parameters, and security policy parameters, from the database connection strings are instrumented. According to some embodiments, the identifying of query-execution functions includes determining if an identity of a candidate function of a database access module matches one of the identifiers of a known execution function. According to some embodiments, a repository of known query execution functions and/or a repository of encoding schema for database connection strings is maintained, for example, using one or more configuration files.

    摘要翻译: 公开了一种用于将代码调入数据库访问模块的方法,系统和计算机可读代码。 根据一些实施例,数据库访问模块内的特定功能被识别为查询执行功能,并且用于在运行时期间记录数据库访问字符串和数据库连接字符串中的至少一个的指令被检测到所识别的查询执行功能中。 示例性数据库访问字符串包括数据库查询字符串,例如SQL查询字符串和存储过程名称。 可选地,对从数据库连接字符串提取各种参数(例如数据库标识符,性能参数和安全策略参数)的附加指令进行了检测。 根据一些实施例,查询执行功能的识别包括确定数据库访问模块的候选功能的标识是否与已知执行功能的标识符之一相匹配。 根据一些实施例,维护例如使用一个或多个配置文件的已知查询执行功能的存储库和/或用于数据库连接字符串的编码模式的存储库。