SimplePerfUtil
public
class
SimplePerfUtil
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.SimplePerfUtil |
מחלקת כלי עזר לשליחת פקודה פשוטה ולאיסוף תוצאות
מידע נוסף:
סיכום
methods ציבוריים | |
|---|---|
SimplePerfResult
|
executeCommand(String command)
מריץ את הפקודה הנתונה של adb shell, עם simpleperf שעוטף אותה תוצאת Simpleperf תנותח ותוחזר למתקשר |
void
|
executeCommand(String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
מריץ את הפקודה הנתונה של adb shell, עם simpleperf שעוטף אותה באחריות המתקשר לנתח את תוצאת simpleperf דרך המקלט |
void
|
executeCommand(String command, IShellOutputReceiver receiver)
מריץ את הפקודה הנתונה של adb shell, עם simpleperf שעוטף אותה באחריות המתקשר לנתח את תוצאת simpleperf דרך המקלט |
|
getArgumentList()
קבלת ארגומנט לפקודת simpleperf |
static
SimplePerfUtil
|
newInstance(ITestDevice device, SimplePerfUtil.SimplePerfType type)
SimplePerfUtil Constructor המתקשר צריך להגדיר את סוג המכשיר ואת סוג simpleperf כשמפעילים את המופע |
void
|
setArgumentList(
הגדרת ארגומנט בפקודה simpleperf |
שיטות מוגנות | |
|---|---|
String
|
commandStringPreparer(String command)
|
methods ציבוריים
executeCommand
public SimplePerfResult executeCommand (String command)
מריץ את הפקודה הנתונה של adb shell, עם simpleperf שעוטף אותה
התוצאה של Simpleperf תנותח ותוחזר למתקשר
| פרמטרים | |
|---|---|
command |
String: הפקודה להרצה במכשיר |
| החזרות | |
|---|---|
SimplePerfResult |
אובייקט SimplePerfResult מכיל את כל פרטי התוצאה |
| זריקות | |
|---|---|
DeviceNotAvailableException |
אם החיבור למכשיר אבד ואי אפשר לשחזר אותו |
executeCommand
public void executeCommand (String command,
IShellOutputReceiver receiver,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)מריץ את הפקודה הנתונה של adb shell, עם simpleperf שעוטף אותה
באחריות המתקשר לנתח את תוצאת simpleperf דרך המקלט
| פרמטרים | |
|---|---|
command |
String: הפקודה להרצה במכשיר |
receiver |
IShellOutputReceiver: אובייקט IShellOutputReceiver להפניית פלט של מעטפת |
maxTimeToOutputShellResponse |
long: משך הזמן המקסימלי שבו הפקודה יכולה לא להפיק פלט של תגובה כלשהי. היחידה מצוינת ב-timeUnit |
timeUnit |
TimeUnit: timeUnit unit for maxTimeToOutputShellResponse, see ERROR(/TimeUnit) |
retryAttempts |
int: מספר הפעמים המקסימלי לניסיון חוזר של הפקודה אם היא נכשלת בגלל חריגה. אם הפעולות retryAttempts לא יבוצעו בהצלחה, תופעל חריגה מסוג DeviceNotResponsiveException. |
| זריקות | |
|---|---|
DeviceNotAvailableException |
אם החיבור למכשיר אבד ואי אפשר לשחזר אותו |
executeCommand
public void executeCommand (String command,
IShellOutputReceiver receiver)מריץ את הפקודה הנתונה של adb shell, עם simpleperf שעוטף אותה
באחריות המתקשר לנתח את תוצאת simpleperf דרך המקלט
| פרמטרים | |
|---|---|
command |
String: הפקודה להרצה במכשיר |
receiver |
IShellOutputReceiver: אובייקט IShellOutputReceiver להפניית פלט של מעטפת |
| זריקות | |
|---|---|
DeviceNotAvailableException |
אם החיבור למכשיר אבד ואי אפשר לשחזר אותו |
getArgumentList
publicgetArgumentList ()
קבלת ארגומנט לפקודת simpleperf
| החזרות | |
|---|---|
|
רשימה של פקודות משנה וארגומנטים (אפשר להשאיר ריק) |
newInstance
public static SimplePerfUtil newInstance (ITestDevice device, SimplePerfUtil.SimplePerfType type)
SimplePerfUtil Constructor
המתקשר צריך להגדיר את סוג המכשיר וה-simpleperf כשמפעילים את המופע
| פרמטרים | |
|---|---|
device |
ITestDevice: ITestDevice מכשיר בדיקה |
type |
SimplePerfUtil.SimplePerfType: SimplePerfType מציין את מצב simpleperf |
| החזרות | |
|---|---|
SimplePerfUtil |
מופע חדש של SimplePerfUtil |
setArgumentList
public void setArgumentList (arguList)
הגדרת ארגומנט בפקודה simpleperf
| פרמטרים | |
|---|---|
arguList |
: רשימה של פקודות משנה וארגומנטים |
שיטות מוגנות
commandStringPreparer
protected String commandStringPreparer (String command)
| פרמטרים | |
|---|---|
command |
String |
| החזרות | |
|---|---|
String |
|