Commit 360307fd authored by Mahesh Maddikayala's avatar Mahesh Maddikayala Committed by Facebook Github Bot

Add resource monitor object to fbzmq library

Summary:
Add resource monitor object to fbzmq library to monitor CPU and memory. User can use
the object to query RSS memory, cpu usage, and optionally call API to monitor memory periodicially
 and crash when reaches beyond a specified threshold limit.

Reviewed By: cenzhao

Differential Revision: D8873504

fbshipit-source-id: a445fdd580da82c55fba09c43f46f60bb9f1149a
parent f0a3212d
...@@ -8,6 +8,7 @@ import specs.fbthrift as fbthrift ...@@ -8,6 +8,7 @@ import specs.fbthrift as fbthrift
import specs.folly as folly import specs.folly as folly
import specs.gmock as gmock import specs.gmock as gmock
import specs.sodium as sodium import specs.sodium as sodium
import specs.sigar as sigar
from shell_quoting import ShellQuoted from shell_quoting import ShellQuoted
...@@ -15,7 +16,7 @@ from shell_quoting import ShellQuoted ...@@ -15,7 +16,7 @@ from shell_quoting import ShellQuoted
def fbcode_builder_spec(builder): def fbcode_builder_spec(builder):
builder.add_option('zeromq/libzmq:git_hash', 'v4.2.5') builder.add_option('zeromq/libzmq:git_hash', 'v4.2.5')
return { return {
'depends_on': [folly, fbthrift, gmock, sodium], 'depends_on': [folly, fbthrift, gmock, sodium, sigar],
'steps': [ 'steps': [
builder.github_project_workdir('zeromq/libzmq', '.'), builder.github_project_workdir('zeromq/libzmq', '.'),
builder.step('Build and install zeromq/libzmq', [ builder.step('Build and install zeromq/libzmq', [
......
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from shell_quoting import ShellQuoted
def fbcode_builder_spec(builder):
return {
'steps': [
builder.github_project_workdir('hyperic/sigar', '.'),
builder.step('Build and install sigar', [
builder.run(ShellQuoted('./autogen.sh')),
builder.run(ShellQuoted('CFLAGS="$CFLAGS -fgnu89-inline"')),
builder.configure(),
builder.make_and_install(),
]),
],
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment