19 lines
799 B
C++
19 lines
799 B
C++
#include "dart/Reader.h"
|
|
#include <iostream>
|
|
|
|
int main(int argc, char** argv) {
|
|
Dart::Reader reader(argv[1]);
|
|
auto snapshot = reader.getSnapshot(Dart::DartSnapshot::ISOLATE_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;
|
|
}
|