ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



src/inspectorj/agent/agentutils.h File Reference


Detailed Description

Date:
Mar 1 2007

Author:
James May

Definition in file agentutils.h.

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <ctime>
#include <QString>
#include <QStringList>
#include <QStringListIterator>
#include <QList>
#include <QRegExp>
#include "jvmti.h"

Include dependency graph for agentutils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  inspectorj
namespace  inspectorj::agent

Classes

class  inspectorj::agent::AgentLogger
 AgentLogger is a simple logger class for logging to stdout / stderr. More...

Functions

char * getToken (char *str, char *seps, char *buf, int max)
 Return a token from a char*.
bool coveredByList (char *cname, char *mname, QList< QRegExp > *)
bool interested (char *cname, char *mname, QList< QRegExp > *)
void createAgentClassFilter (QRegExp &regexp, QString filterString)
 Create a Regular Expression class filter based on the filter string.
static void check_jvmti_error (jvmtiEnv *jvmti, jvmtiError errnum, const char *str)


Function Documentation

void createAgentClassFilter ( QRegExp &  regexp,
QString  filterString 
)

Create a Regular Expression class filter based on the filter string.

A filter string has the form: 'java.io.*' or 'org.apache.*.*.*Request*'. A '*' matches any character except '.' therefore '*' will NOT match multiple packages. For example java.awt.* will match java.awt.AWTEvent but will not match java.awt.event.ActionEvent.

To match across multiple package names, use the greedy double star wildcard '**': java.awt.** will match both java.awt.AWTEvent and java.awt.event.ActionEvent.

Parameters:
regexp A QRegExp reference to hold the class filter.
filterString A filter string used to construct a RegExp filter.

Definition at line 51 of file agentutils.cpp.

Referenced by parseOptions().

char* getToken ( char *  str,
char *  seps,
char *  buf,
int  max 
)

Return a token from a char*.

Parameters:
str String to scan
seps Separation characters
buf Place to put results
max Size of buf
Returns:
NULL if no token available or can't do the scan.

Definition at line 69 of file agentutils.cpp.

Referenced by parseOptions().


Generated on Sun Aug 19 17:07:56 2007 for inspectorJ by  doxygen 1.5.1