#include <base/Application.h>
#include <base/concurrency/Process.h>
#include <base/TypeInfo.h>
#include <base/security/User.h>
using namespace com::azure::dev::base;
private:
static const unsigned int MAJOR_VERSION = 1;
static const unsigned int MINOR_VERSION = 0;
public:
ProcessApplication()
{
}
void dumpLimit(
resource,
);
resource,
);
fout << indent(2) << literal << " (soft): ";
if (softLimit == -1) {
fout << "INFINITE";
} else {
fout << softLimit;
}
fout << ENDL;
fout << indent(2) << literal << " (hard): ";
if (hardLimit == -1) {
fout << "INFINITE";
} else {
fout << hardLimit;
}
fout << ENDL;
}
void main()
{
fout << getFormalName() << " version "
<< MAJOR_VERSION << '.' << MINOR_VERSION << EOL
<< "The Base Framework (Test Suite)" << EOL
<< ENDL;
fout << "Name of process: ";
try {
fout << "unknown";
}
fout << ENDL;
fout << "Is parent process alive: ";
try {
fout << "unknown";
}
fout << ENDL;
fout << "Priority of process: "
fout << "Priority of parent process: "
fout << "Number of configured processors: "
fout << "Number of online processors: "
fout << ENDL;
fout << "Resource limits: " << ENDL;
}
};
APPLICATION_STUB(ProcessApplication);