a0760df95a
Change-Id: I3e77ada0d6670240c23ead2a699f0f0ee2facb28
15 lines
319 B
Plaintext
Executable File
15 lines
319 B
Plaintext
Executable File
#!/usr/bin/stap
|
|
|
|
global count = 0;
|
|
global old_count = 0;
|
|
probe python.function.entry {
|
|
if ((funcname == "execute") && isinstr(filename, "sqlalchemy/engine/base.py") && (lineno == 846)) {
|
|
count = count + 1;
|
|
}
|
|
}
|
|
probe timer.ms(1000) {
|
|
new_count = count - old_count;
|
|
printf("%d\n", new_count);
|
|
old_count = count;
|
|
}
|