summaryrefslogtreecommitdiff
path: root/top/top_nls.h
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2015-06-28 00:00:00 -0500
committerCraig Small <csmall@enc.com.au>2015-06-29 21:29:33 +1000
commitc3fd7473c5e2f8be59b2ac90696e79079f45b5a8 (patch)
treea5f19263d3877ba6c76482227a6272541ba5a43e /top/top_nls.h
parenta05084f381c3d63c8e1b643f72f4021935d41d8a (diff)
downloadprocps-ng-c3fd7473c5e2f8be59b2ac90696e79079f45b5a8.tar.gz
top: exploit the new library API for memory statistics
This commit represents the pioneering attempt at using the concept of 'chained' library requests in an effort to reduce function call overhead. It required exposing no more implementation details than were already shown through the individual calls, yet is satisfied in one. It is just such an approach that will prove invaluable when it comes time to access individual /proc/##/data. Programs could 'chain' only those 'results' structures representing their current view independent of all the fields any such programs might be prepared to display. Thus the standard 'read', which wouldn't apply to task level data very well (or efficiently), can now become a 'read_chain' whereby the former PROC_FILL flags need can be satisfied & yield the minimum open/close calls. Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'top/top_nls.h')
-rw-r--r--top/top_nls.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/top/top_nls.h b/top/top_nls.h
index 896ed92..5f3d7b5 100644
--- a/top/top_nls.h
+++ b/top/top_nls.h
@@ -74,17 +74,17 @@ enum norm_nls {
FIND_no_next_txt, FOREST_modes_fmt, FOREST_views_txt, GET_find_str_txt,
GET_max_task_fmt, GET_nice_num_fmt, GET_pid2kill_fmt, GET_pid2nice_fmt,
GET_sigs_num_fmt, GET_user_ids_txt, HELP_cmdline_fmt, IRIX_curmode_fmt,
- LIMIT_exceed_fmt, MISSING_args_fmt, NAME_windows_fmt, NOT_onsecure_txt,
- NOT_smp_cpus_txt, NUMA_nodebad_txt, NUMA_nodeget_fmt, NUMA_nodenam_fmt,
- NUMA_nodenot_txt, OFF_one_word_txt, ON_word_only_txt, OSEL_casenot_txt,
- OSEL_caseyes_txt, OSEL_errdelm_fmt, OSEL_errdups_txt, OSEL_errvalu_fmt,
- OSEL_prompts_fmt, OSEL_statlin_fmt, RC_bad_entry_fmt, RC_bad_files_fmt,
- SCROLL_coord_fmt, SELECT_clash_txt, THREADS_show_fmt, TIME_accumed_fmt,
- UNKNOWN_cmds_txt, UNKNOWN_opts_fmt, USAGE_abbrev_txt, WORD_abv_mem_txt,
- WORD_abv_swp_txt, WORD_allcpus_txt, WORD_another_txt, WORD_eachcpu_fmt,
- WORD_exclude_txt, WORD_include_txt, WORD_noneone_txt, WORD_process_txt,
- WORD_threads_txt, WRITE_rcfile_fmt, WRONG_switch_fmt, XTRA_badflds_fmt,
- XTRA_fixwide_fmt, XTRA_warncfg_txt, XTRA_winsize_txt,
+ LIB_errormem_txt, LIMIT_exceed_fmt, MISSING_args_fmt, NAME_windows_fmt,
+ NOT_onsecure_txt, NOT_smp_cpus_txt, NUMA_nodebad_txt, NUMA_nodeget_fmt,
+ NUMA_nodenam_fmt, NUMA_nodenot_txt, OFF_one_word_txt, ON_word_only_txt,
+ OSEL_casenot_txt, OSEL_caseyes_txt, OSEL_errdelm_fmt, OSEL_errdups_txt,
+ OSEL_errvalu_fmt, OSEL_prompts_fmt, OSEL_statlin_fmt, RC_bad_entry_fmt,
+ RC_bad_files_fmt, SCROLL_coord_fmt, SELECT_clash_txt, THREADS_show_fmt,
+ TIME_accumed_fmt, UNKNOWN_cmds_txt, UNKNOWN_opts_fmt, USAGE_abbrev_txt,
+ WORD_abv_mem_txt, WORD_abv_swp_txt, WORD_allcpus_txt, WORD_another_txt,
+ WORD_eachcpu_fmt, WORD_exclude_txt, WORD_include_txt, WORD_noneone_txt,
+ WORD_process_txt, WORD_threads_txt, WRITE_rcfile_fmt, WRONG_switch_fmt,
+ XTRA_badflds_fmt, XTRA_fixwide_fmt, XTRA_warncfg_txt, XTRA_winsize_txt,
#ifndef INSP_OFFDEMO
YINSP_demo01_txt, YINSP_demo02_txt, YINSP_demo03_txt, YINSP_deqfmt_txt,
YINSP_deqtyp_txt, YINSP_dstory_txt,