Questions tagged [instrumentation]

The process of inserting extra diagnostic code during compilation of a given source code.

The process of inserting extra diagnostic code during compilation of a given source code. Instrumentation can involve adding extra debugging information or providing hooks into profilers and other utilities in order to provide extra feedback to the developer.

1193 questions
-1
votes
1 answer

Relocating/Moving ARM instructions for instrumentation/proxy library

I am attempting to write a binary instrumentation library (for ARM) that requires I move/relocate ARM assembly instructions. Note that the ordering of the instructions are staying the same, I am just moving them to different regions of memory so…
Jon
  • 1,381
  • 3
  • 16
  • 41
-1
votes
1 answer

Looking for a lightweight solution to systematically instrument the if-conditions of C functions

I need to use lightweight instrumentation tools (say, using some existing Python or maybe C pre-processor framework) to systematically insert statements in if-conditions of C functions: For example, let foo be the C function: int foo(int x){ if…
zell
  • 9,830
  • 10
  • 62
  • 115
-1
votes
1 answer

Detecting dynamically loaded classes in a java program

I am using soot to instrument classes of an application. But I've found to way to instrument classes dynamically with it. Soot only detect static links which would cause failures with programs with dynamic loading. So I have to detect what classes…
Ameer Jewdaki
  • 1,758
  • 4
  • 21
  • 36
-1
votes
1 answer

Can one java process fetch ids of other java processes running on the same host?

Is there a way to find which jvms are currently running, and get their PIDs? e.g. when launching JVisualvm, it shows all local jvms. How can I do that? Background: I'm working on an instrumentation project, and I would like to attach an agent to…
iGili
  • 823
  • 7
  • 18
-1
votes
1 answer

Java Write Log to Text

Currently I'm instrumenting methods with loggers to trace some information but I have problem extracting the log output into the text file. What I am doing is instrumenting every single method with logger.info but it doesn't work when you want to…
James Riden
  • 101
  • 1
  • 9
-2
votes
2 answers

Is there a way to instrument CSS file?

I have a CSS file on a webpage. I have a bunch of selenium tests that validates the styles for a component. I want to instrument this CSS file to generate the code coverage for it? Is this possible? Any help on this is highly appreciative.
Eajaz
  • 469
  • 4
  • 21
-3
votes
1 answer

Does Golang's (*http.ResponseWriter) Write() method block until data is recieved by the client?

I ask this question because I had a very weird puzzling experience that I am about to tell. I am instrumenting an HTTP API server to observe it's behavior in the presence of latency between the server and the clients. I had a setup consisting of a…
Karim Manaouil
  • 1,177
  • 10
  • 24
-4
votes
1 answer

The class file for a new Thread and the class file for main are the same

I have a program called Main.java, shown as below. After compilation of this program, there will be two .class file: Main.class and Main$1.class. My problem is the two .class files are exactly the same. Anyone knows what is wrong? I wan to…
Xiong
  • 1
  • 1
1 2 3
79
80