![]() |
|
|
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 ®exp, 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) |
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.
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*.
str | String to scan | |
seps | Separation characters | |
buf | Place to put results | |
max | Size of buf |
Definition at line 69 of file agentutils.cpp.
Referenced by parseOptions().