19 lines
821 B
C++
19 lines
821 B
C++
#include "dart/Reader.h"
|
|
#include <iostream>
|
|
|
|
int main(int argc, char** argv) {
|
|
Dart::Reader reader("/Users/selim/Documents/libapp.so");
|
|
auto snapshot = reader.getSnapshot(Dart::DartSnapshot::VM_DATA);
|
|
|
|
std::cout << "Snapshot kind: " << snapshot.kindString() << std::endl;
|
|
std::cout << "Size: " << snapshot.size() << std::endl;
|
|
std::cout << "Version hash: " << snapshot.versionHash() << std::endl;
|
|
std::cout << "Features: " << snapshot.featuresString() << std::endl;
|
|
std::cout << "Base objects: " << snapshot.baseObjectsCount() << std::endl;
|
|
std::cout << "All objects: " << snapshot.allObjectsCount() << std::endl;
|
|
std::cout << "Clusters: " << snapshot.clustersCount() << std::endl;
|
|
std::cout << "Field table length: " << snapshot.fieldTableLength() << std::endl;
|
|
|
|
return 0;
|
|
}
|