Use libinstrumentation to add stack traces to your code. Usage:

- Add libinstrumentation to your project (details depend on the compiler used)
- Define a list of file numbers in a central location
- Add include: #include "libinstrumentation.h"
- Below the include, add a line like #define FILE_NUMBER FILE_NO_ARCHIVE_ACCESS_CPP
- At the start of a function, add the macro SET_SCOPE;
- Before dangerous/long/critical operations, add a call to SET_OP;
- Replace any return statements with the RETURN macro
- Any time you need a stacktrace, call stGetCurrentThreadStackTrace. This will get you a string composed of pairs a:b, where a is a file number you defined and b is a line number for that file

Please check out the latest version from git and please check the code samples.

Features

  • Stacktraces
  • Instrumentation
  • Portable

Project Activity

See All Activity >

Follow libinstrumentation

libinstrumentation Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of libinstrumentation!

Additional Project Details

Registered

2023-01-09