blob: 59bea7d0fd8c5a3e9cf20bcde1b29b385eebfda2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/util/resource_limits.h>
#include <iostream>
int
main(int, char**)
{
auto limits = vespalib::ResourceLimits::create();
std::cout << "Memory limit: " << limits.memory() << '\n' <<
"Cpu limit: " << limits.cpu() << std::endl;
return 0;
}
|