⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slog_prof_addintvlinfo.3

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 3
字号:
.TH SLOG_PROF_AddIntvlInfo 3 "4/24/2000" " " "SLOG_API".SH NAMESLOG_PROF_AddIntvlInfo \-  Add one display description of an  interval to the SLOG Display Profile table. .SH SYNOPSIS.nfint SLOG_PROF_AddIntvlInfo(       SLOG_STREAM       *slog,                            const SLOG_intvltype_t   intvltype,                            const SLOG_bebit_t       bebit_0,                            const SLOG_bebit_t       bebit_1,                            const char *             classtype,                            const char *             label,                            const char *             color,                            const SLOG_N_args_t      Nargs,                                  ... ).fi.SH MODIFIED INPUT VARIABLES .PD 0.TP.B slog - pointer to the SLOG_STREAM where SLOG Display Profile Table islocated..PD 1.SH UNMODIFIED INPUT VARIABLES .PD 0.TP.B intvltype - index to the interval type..PD 1.PD 0.TP.B bebit_0   - the 1st bebit..PD 1.PD 0.TP.B bebit_1   - the 2nd bebit..PD 1.PD 0.TP.B classtype - character string for the classtype of the interval.PD 1.PD 0.TP.B label     - character string for the label of the interval.PD 1.PD 0.TP.B color     - character string for the color of the interval.PD 1.PD 0.TP.B Nargs     - Number of MPI call argument for this interval record type..PD 1.PD 0.TP.B ...       - optional set of string argument description labels whose total number should match Nargs supplied, otherwise, unpredicted behaviour will occur..PD 1.SH MODIFIED OUTPUT VARIABLES .PD 0.TP.B returned value - integer return status..PD 1.SH USAGE NOTES ON THIS SUBROUTINE all the input characters strings, classtype, label, color and theoptional string argument description label are NOT allowed to belonger than SLOG_STRING_LEN - 1, including trailing null character.( SLOG_STRING_LEN is defined in slog.h ).  They are also allowedto contain alphanumeric, underscore, blank and tab characters.But tab characters, if exist, in the string are all converted toblanks.Notes on the Addition of Extra Interval Description.This note is to clarify the usage of SLOG_PROF_XXX() routinesespecially while the user wants to add extra interval descriptionto the logfile when the process of addition of interval recordsto the logfile has been started, for instance if one needs toadd user marker interval records.Also, the term interval descriptor refers to an entry inthe Display Profile, so is the term interval information,abbrev. as _IntvlInfo_.  These 3 terms are used interchangably.Under normal circumstances, the Display Profile table is createdby first opening the section of the logfile for storing the tableusing SLOG_PROF_Open().  Then add the interval description usingSLOG_PROF_AddIntvlInfo() and close the table section bySLOG_PROF_Close().In the case that the logfile involves interval records whoseinterval type are NOT known until the process of insertingof the interval records to the logfile has been started, oneshould open the SLOG_PROF_Open().  Then add the known recorddefinitions using SLOG_PROF_AddIntvlInfo().  However, one shouldNOT call SLOG_PROF_Close() to close the table section.  Instead,SLOG_PROF_SetExtraNumOfIntvlInfos() should be called to setthe extra number of interval description entries needed( thenumber can be greater than what one actually needs ).  Thenwhen user encounters a new interval record type,SLOG_PROF_AddExtraIntvlInfo() can then be called to add the newinterval record type to the Display Profile table.  Thismechanism is very similar to that of Record Definition Table.Except for Record Definition Table, the above procedure has tobe done before adding the interval record to the logfile usingSLOG_Irec_ToOutputStream() which does NOT allow intervalrecord of with unknown interval type to the Record Definitiontable.  For Display Profile, the same procedure is implmentedto simplify the interface for user to store interval descriptioninformation to the logfile, the interval description informationis NOT important till logfile needs to be displayed graphically..br.SH INCLUDE FILE NEEDED slog_profile.h.SH NOTES ON SLOG RETURN STATUS CODE There are 5 allowed SLOG returned status codes.  They includeSLOG_SUCCESS, SLOG_FAIL and SLOG_EOF.  Their actual valuesare defined in slog.hSLOG_SUCCESS is returned when no error is encountered.SLOG_FAIL is returned when error is encounted.SLOG_EOF is returned when End of file is encounted.There are also SLOG_TRUE and SLOG_FALSE which are sued as booleanvalues, in particular they are used in boolean functions whichare usually named as IsXXXXX(), AreXXXXX() and HasXXXXX()..br.SH LOCATION../src/slog_profile.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -