sapling/eden/cli/TARGETS
Jyothsna Konisa 8fb37c1ada Diagnostic tool to report Stat information of EdenFs
Summary:
Added new tool to report stat information of EdenFs like fuse counters, Memory counters, latencies, Inode status for all the mount points etc.

eden stat : Prints the general information about eden like list of mount points, loaded unloaded and materialized inodes in each mount point. Also this reports how well periodic unload job is doing by reporting the number of unloaded inodes by periodic job.

eden stat io : Prints how many number of calls made to a system call in Edenfs.

eden stat memory : returns the memory stat for edenfs.

eden stat latency : reports the latencies of system calls in Edenfs.

Reviewed By: bolinfest

Differential Revision: D5660345

fbshipit-source-id: 97a1c2b83a6d8df0cd1b82c4d54b52d7ebd126bd
2017-08-25 12:49:35 -07:00

58 lines
1.2 KiB
Plaintext

include_defs("//eden/DEFS")
python_binary(
name = "cli",
srcs = ["main.py"],
main_module = "eden/cli/main",
deps = [
"@/eden/cli:debug",
"@/eden/cli:lib",
"@/eden/fs/service:py-client",
],
)
python_library(
name = "lib",
srcs = [
"cmd_util.py",
"config.py",
"configinterpolator.py",
"rage.py",
"stats.py",
"stats_print.py",
"util.py",
],
)
python_library(
name = "debug",
srcs = [
"debug.py",
],
deps = [
":lib",
"@/eden/fs/inodes:hgdirstate-py",
"@/eden/fs/inodes:serialization-py",
],
)
python_unittest(
name = "test",
srcs = glob(["test/*.py"]),
deps = [":lib"],
)
for build_target, suffix in get_daemon_versions():
# The :all rule is a convenience to ensure that the CLI, daemon, and Thrift
# Python client for the Hg extension are built.
buck_genrule(
name = 'all%s' % suffix,
srcs = [
':cli',
build_target.replace('@/', '//'),
'//eden/fs/service:thrift-EdenService-pyremote',
],
out = 'eden%s-stamp' % suffix,
cmd = 'touch $OUT',
)